Structure
MySQLProtocol.CapabilityFlags
The capability flags are used by the client and server to indicate which features they support and want to use.
struct CapabilityFlags
Overview
https://dev.mysql.com/doc/internals/en/capability-flags.html#packet-Protocol::CapabilityFlags
Topics
Initializers
init(rawValue:)Create a newMySQLCapabilityFlagsfrom the upper and lower values.
Instance Properties
descriptionSeeCustomStringConvertible.namerawValueThe raw capabilities value.
Type Properties
CLIENT_CAN_HANDLE_EXPIRED_PASSWORDSServer: Announces support for expired password extension. Client: Can handle expired passwords. https://dev.mysql.com/doc/internals/en/cs-sect-expired-password.htmlCLIENT_COMPRESSCompression protocol supported. Server: Supports compression. Client: Switches to compressed protocol after successful authentication.CLIENT_CONNECT_ATTRSServer: Permits connection attributes inProtocol::HandshakeResponse41. Client: Sends connection attributes inProtocol::HandshakeResponse41.CLIENT_CONNECT_WITH_DBDatabase (schema) name can be specified on connect in Handshake Response Packet. Server: Supports schema-name in Handshake Response Packet. Client: Handshake Response Packet contains a schema-name.CLIENT_DEPRECATE_EOFServer: Can send OK after a Text Resultset. Client: Expects an OK (instead of EOF) after the resultset rows of a Text Resultset. To supportCLIENT_SESSION_TRACK, additional information must be sent after all successful commands. Although the OK packet is extensible, the EOF packet is not due to the overlap of its bytes with the content of the Text Resultset Row. Therefore, the EOF packet in the Text Resultset is replaced with an OK packet. EOF packets are deprecated as of MySQL 5.7.5.CLIENT_FOUND_ROWSSend found rows instead of affected rows inEOF_Packet.CLIENT_IGNORE_SIGPIPEClient: Do not issueSIGPIPEif network failures occur (libmysqlclientonly).CLIENT_IGNORE_SPACEServer: Parser can ignore spaces before ‘(’. Client: Let the parser ignore spaces before ‘(’.CLIENT_INTERACTIVEwait_timeoutversuswait_interactive_timeout. Server: Supports interactive and noninteractive clients. Client: Client is interactive.CLIENT_LOCAL_FILESCan useLOAD DATA LOCAL. Server: Enables theLOCAL INFILErequest ofLOAD DATA|XML. Client: Will handleLOCAL INFILErequest.CLIENT_LONG_FLAGLonger flags inProtocol::ColumnDefinition320. Server: Supports longer flags. Client: Expects longer flags.CLIENT_LONG_PASSWORDUse the improved version of Old Password Authentication.CLIENT_MULTI_RESULTSServer: Can send multiple resultsets forCOM_QUERY. Client: Can handle multiple resultsets forCOM_QUERY.CLIENT_MULTI_STATEMENTSServer: Can handle multiple statements perCOM_QUERYandCOM_STMT_PREPARE. Client: May send multiple statements perCOM_QUERYandCOM_STMT_PREPARE.CLIENT_NO_SCHEMAServer: Do not permitdatabase.table.column.CLIENT_ODBCSpecial handling of ODBC behavior.CLIENT_PLUGIN_AUTHServer: Sends extra data in Initial Handshake Packet and supports the pluggable authentication protocol. Client: Supports authentication plugins.CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATAServer: Understands length-encoded integer for auth response data inProtocol::HandshakeResponse41. Client: Length of auth response data inProtocol::HandshakeResponse41is a length-encoded integer.CLIENT_PROTOCOL_41Server: Supports the 4.1 protocol. Client: Uses the 4.1 protocol.CLIENT_PS_MULTI_RESULTSServer: Can send multiple resultsets forCOM_STMT_EXECUTE. Client: Can handle multiple resultsets forCOM_STMT_EXECUTE.CLIENT_RESERVEDUnused.CLIENT_SECURE_CONNECTIONServer: SupportsAuthentication::Native41. Client: SupportsAuthentication::Native41.CLIENT_SESSION_TRACKServer: Can setSERVER_SESSION_STATE_CHANGEDin the Status Flags and send session state change data after a OK packet. Client: Expects the server to send sesson state changes after a OK packet.CLIENT_SSLServer: Supports SSL. Client: Switch to SSL after sending the capability flags.CLIENT_TRANSACTIONSServer: Can send status flags inEOF_Packet. Client: Expects status flags inEOF_Packet.MARIADB_CLIENT_COM_MULTIPermitCOM_MULTIprotocol.MARIADB_CLIENT_PROGRESSClient support progress indicator (since 10.2).MARIADB_CLIENT_STMT_BULK_OPERATIONSPermit bulk insert.allAll capabilities.clientDefaultDefault capabilities.
Relationships
Conforms To
Swift.CustomStringConvertibleSwift.EquatableSwift.ExpressibleByArrayLiteralSwift.OptionSetSwift.RawRepresentableSwift.SendableSwift.SendableMetatypeSwift.SetAlgebra