Versions in this module Expand all Collapse all v1 v1.0.0 May 11, 2021 Changes in this version + const DefaultAuthPluginName + const DefaultClientCapability + const DefaultServerCapability + const EOF_PACKET + const ERR_PACKET + const OK_PACKET + var DefaultSalt = []byte + func ColumnCount(payload []byte) (count uint64, err error) + func PackColumn(field *querypb.Field) []byte + func PackEOF(e *EOF) []byte + func PackERR(e *ERR) []byte + func PackOK(o *OK) []byte + func PackStatementExecute(stmtID uint32, parameters []sqltypes.Value) ([]byte, error) + func PackStatementPrepare(stmt *Statement) []byte + func UnPackERR(data []byte) error + func UnPackStatementExecute(data []byte, prepare *Statement, ...) error + func UnpackColumn(payload []byte) (*querypb.Field, error) + type Auth struct + func NewAuth() *Auth + func (a *Auth) AuthResponse() []byte + func (a *Auth) Charset() uint8 + func (a *Auth) CleanAuthResponse() + func (a *Auth) ClientFlags() uint32 + func (a *Auth) Database() string + func (a *Auth) Pack(capabilityFlags uint32, charset uint8, username string, password string, ...) []byte + func (a *Auth) UnPack(payload []byte) error + func (a *Auth) User() string + type EOF struct + Header byte + StatusFlags uint16 + Warnings uint16 + func UnPackEOF(data []byte) (*EOF, error) + type ERR struct + ErrorCode uint16 + ErrorMessage string + Header byte + SQLState string + type Greeting struct + Capability uint32 + Charset uint8 + ConnectionID uint32 + Salt []byte + func NewGreeting(connectionID uint32, serverVersion string) *Greeting + func (g *Greeting) Pack() []byte + func (g *Greeting) Status() uint16 + func (g *Greeting) UnPack(payload []byte) error + type OK struct + AffectedRows uint64 + Header byte + LastInsertID uint64 + StatusFlags uint16 + Warnings uint16 + func UnPackOK(data []byte) (*OK, error) + type Statement struct + BindVars map[string]*querypb.BindVariable + ColumnCount uint16 + ColumnNames []string + Header byte + ID uint32 + ParamCount uint16 + ParamsType []int32 + Warnings uint16 + func UnPackStatementPrepare(data []byte) (*Statement, error)