Versions in this module Expand all Collapse all v11 v11.3.3 Dec 13, 2022 Changes in this version + func FetchMySQLVersionInternal(ctx context.Context, dialer client.Dialer, databaseURI string) (string, error) + func ReadPacket(conn io.Reader) (pkt []byte, pktType byte, err error) + func WritePacket(pkt []byte, conn io.Writer) (int, error) + type ChangeUser struct + func (p *ChangeUser) Bytes() []byte + func (p *ChangeUser) User() string + type CreateDB struct + func (p *CreateDB) SchemaName() string + type Debug struct + func (p *Debug) Bytes() []byte + type DropDB struct + func (p *DropDB) SchemaName() string + type Error struct + func (p *Error) Bytes() []byte + func (p *Error) Error() string + type Generic struct + func (p *Generic) Bytes() []byte + type InitDB struct + func (p *InitDB) SchemaName() string + type OK struct + func (p *OK) Bytes() []byte + type Packet interface + Bytes func() []byte + func ParsePacket(conn io.Reader) (Packet, error) + type ProcessKill struct + func (p *ProcessKill) Bytes() []byte + func (p *ProcessKill) ProcessID() uint32 + type Query struct + func (p *Query) Bytes() []byte + func (p *Query) Query() string + type Quit struct + func (p *Quit) Bytes() []byte + type Refresh struct + func (p *Refresh) Bytes() []byte + func (p *Refresh) Subcommand() string + type ShutDown struct + func (p *ShutDown) Bytes() []byte + type StatementBulkExecutePacket struct + func (p *StatementBulkExecutePacket) Parameters(definitions []mysql.Field) (parameters []interface{}, ok bool) + func (p *StatementBulkExecutePacket) StatementID() uint32 + type StatementClosePacket struct + func (p *StatementClosePacket) StatementID() uint32 + type StatementExecutePacket struct + func (p *StatementExecutePacket) Parameters(definitions []mysql.Field) (parameters []interface{}, ok bool) + func (p *StatementExecutePacket) StatementID() uint32 + type StatementFetchPacket struct + func (p *StatementFetchPacket) StatementID() uint32 + func (s *StatementFetchPacket) RowsCount() uint32 + type StatementPreparePacket struct + func (p *StatementPreparePacket) Bytes() []byte + func (p *StatementPreparePacket) Query() string + type StatementResetPacket struct + func (p *StatementResetPacket) StatementID() uint32 + type StatementSendLongDataPacket struct + func (p *StatementSendLongDataPacket) Data() []byte + func (p *StatementSendLongDataPacket) ParameterID() uint16 + func (p *StatementSendLongDataPacket) StatementID() uint32