package
0.0.0-20250306163500-5f3bb2705e1f
Repository: https://github.com/versoriumx/teleport.git
Documentation: pkg.go.dev
# Functions
FetchMySQLVersionInternal connects to a MySQL instance with provided dialer and tries to read the server version from initial handshake message.
ParsePacket reads a protocol packet from the connection and returns it in a parsed form.
ReadPacket reads a protocol packet from the connection.
WritePacket writes the provided protocol packet to the connection.
# Structs
ChangeUser represents the COM_CHANGE_USER command.
CreateDB represents the COM_CREATE_DB command.
Debug represents the COM_DEBUG command.
DropDB represents the COM_DROP_DB command.
Error represents the ERR packet.
Generic represents a generic packet other than the ones recognized below.
InitDB represents the COM_INIT_DB command.
OK represents the OK packet.
ProcessKill represents the COM_PROCESS_KILL command.
Query represents the COM_QUERY command.
Quit represents the COM_QUIT command.
Refresh represents the COM_REFRESH command.
ShutDown represents the COM_SHUTDOWN command.
StatementBulkExecutePacket represents the COM_STMT_BULK_EXECUTE command.
StatementClosePacket represents the COM_STMT_CLOSE command.
StatementExecutePacket represents the COM_STMT_EXECUTE command.
StatementFetchPacket represents the COM_STMT_FETCH command.
StatementPreparePacket represents the COM_STMT_PREPARE command.
StatementResetPacket represents the COM_STMT_RESET command.
StatementSendLongDataPacket represents the COM_STMT_SEND_LONG_DATA command.
# Interfaces
Packet is the common interface for MySQL wire protocol packets.