# Functions
AuthServerNegotiateClearOrDialog will finish a negotiation based on the method type for the connection.
AuthServerReadPacketString is a helper method to read a packet as a null terminated string.
No description provided by the author
IsNum returns true if a MySQL type is a numeric value.
NewFromListener creares a new mysql listener from an existing net.Listener.
NewListener creates a new Listener.
NewListenerWithConfig creates new listener using provided config.
NewSalt returns a 20 character salt.
NewSQLError creates a new SQLError.
ParseErrorPacket parses the error packet and returns a SQLError.
RegisterAuthServerImpl registers an implementations of AuthServer.
No description provided by the author
No description provided by the author
ScramblePassword computes the hash of the password using 4.1+ method.
# Constants
AuthSwitchRequestPacket is used to switch auth method.
CapabilityClientConnAttr is CLIENT_CONNECT_ATTRS Permits connection attributes in Protocol::HandshakeResponse41.
CapabilityClientConnectWithDB is CLIENT_CONNECT_WITH_DB.
CapabilityClientDeprecateEOF is CLIENT_DEPRECATE_EOF Expects an OK (instead of EOF) after the resultset rows of a Text Resultset.
CapabilityClientFoundRows is CLIENT_FOUND_ROWS.
CLIENT_LOCAL_FILES 1 << 7 Client can use LOCAL INFILE request of LOAD DATA|XML.
CapabilityClientLongFlag is CLIENT_LONG_FLAG.
CapabilityClientLongPassword is CLIENT_LONG_PASSWORD.
CapabilityClientMultiResults is CLIENT_MULTI_RESULTS Can send multiple resultsets for COM_QUERY.
CapabilityClientMultiStatements is CLIENT_MULTI_STATEMENTS Can handle multiple statements per COM_QUERY and COM_STMT_PREPARE.
CapabilityClientPluginAuth is CLIENT_PLUGIN_AUTH.
CapabilityClientPluginAuthLenencClientData is CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA.
CapabilityClientProtocol41 is CLIENT_PROTOCOL_41.
CapabilityClientSecureConnection is CLIENT_SECURE_CONNECTION.
CapabilityClientSSL is CLIENT_SSL.
CapabilityClientTransactions is CLIENT_TRANSACTIONS.
CharacterSetBinary is for binary.
CharacterSetUtf8 is for UTF8.
ComInitDB is COM_INIT_DB.
ComPing is COM_PING.
ComQuery is COM_QUERY.
ComQuit is COM_QUIT.
ComSetOption is COM_SET_OPTION.
CRMalformedPacket is CR_MALFORMED_PACKET.
CRServerGone is CR_SERVER_GONE_ERROR.
CRServerHandshakeErr is CR_SERVER_HANDSHAKE_ERR.
CRServerLost is CR_SERVER_LOST.
CRUnknownError is CR_UNKNOWN_ERROR.
EOFPacket is the header of the EOF packet.
permissions.
Error codes for server-side errors.
ErrPacket is the header of the error packet.
unavailable.
invalid arg.
unknown.
ERVitessMaxRowsExceeded is when a user tries to select more rows than the max rows as enforced by vitess.
MaxPacketSize is the maximum payload length of a packet the server supports.
MysqlClearPassword transmits the password in the clear.
MysqlDialog uses the dialog plugin on the client side.
MysqlNativePassword uses a salt and transmits a hash on the wire.
NullValue is the encoded value of NULL.
OKPacket is the header of the OK packet.
ServerMoreResultsExists is SERVER_MORE_RESULTS_EXISTS.
SSAccessDeniedError is ER_ACCESS_DENIED_ERROR.
SSServerShutdown is ER_SERVER_SHUTDOWN.
SSUnknownComError is ER_UNKNOWN_COM_ERROR.
SSUnknownSqlstate is ER_SIGNAL_EXCEPTION in include/mysql/sql_state.h, but: const char *unknown_sqlstate= "HY000" in client.c.
# Variables
CharacterSetMap maps the charset name (used in ConnParams) to the integer value.
# Structs
AuthServerNone takes all comers.
AuthServerStatic implements AuthServer using a static configuration.
AuthServerStaticEntry stores the values for a given user.
No description provided by the author
No description provided by the author
ConnParams contains all the parameters to use to connect to mysql.
Listener is the MySQL server protocol listener.
ListenerConfig should be used with NewListenerWithConfig to specify listener parameters.
NoneGetter holds the empty string.
SQLError is the error structure returned from calling a db library function.
StaticUserData holds the username and groups.
# Interfaces
AuthServer is the interface that servers must implement to validate users and passwords.
A Getter has a Get().
A Handler is an interface used by Listener to send queries.