Versions in this module Expand all Collapse all v0 v0.9.8 Aug 27, 2023 v0.9.7 Aug 15, 2023 v0.9.6 Aug 9, 2023 v0.9.5 May 28, 2023 v0.9.4 May 10, 2023 Changes in this version + func UnmarshalPartial(b []byte, m proto.Message) error v0.9.3 May 10, 2023 v0.9.2 Feb 14, 2023 v0.9.1 Feb 3, 2023 v0.9.0 Jan 24, 2023 Changes in this version + const AuthMethodAuto + const AuthMethodMySQL41 + const AuthMethodPlain + const AuthMethodSHA256Memory + var CtxTimeLocation = &CtxKey + var DefaultConnectConfig = &ConnectConfig + func ContextTimeLocation(ctx context.Context) *time.Location + func IsSupportedCollation(c T) bool + func SetContextTimeLocation(ctx context.Context, l *time.Location) context.Context + type AuthMethodType string + type AuthMethodTypes []AuthMethodType + func (a AuthMethodTypes) Has(m AuthMethodType) bool + type Collation struct + CharSet string + ID int + Name string + type CollationID int + type ConnectConfig struct + Address string + AuthMethod AuthMethodType + Password sql.NullString + Schema string + TLSServerCACertPath string + TimeZoneName string + UnixSockAddr string + UseTLS bool + Username string + func (cfg *ConnectConfig) Clone() *ConnectConfig + func (cfg *ConnectConfig) SetPassword(p ...string) *ConnectConfig + type Connection struct + func NewConnection(config *ConnectConfig) (*Connection, error) + func (cnx *Connection) NewSession(ctx context.Context) (*Session, error) + type CtxKey struct + type Prepared struct + func (p *Prepared) Deallocate(ctx context.Context) error + func (p *Prepared) Execute(ctx context.Context, args ...any) (*Result, error) + func (p *Prepared) NumPlaceholders() int + func (p *Prepared) StatementID() uint32 + type Result struct + Columns []*mysqlxresultset.ColumnMetaData + ProducedMessage string + Row *Row + Rows []*Row + func (rs *Result) FetchRow(ctx context.Context) error + func (rs *Result) LastInsertID() uint64 + func (rs *Result) PreparedStatementID() uint32 + func (rs *Result) RowsAffected() uint64 + func (rs *Result) Warnings() []error + type Row struct + Values []any + func NewRow(nrColumns int) *Row + type ServerCapabilities struct + AuthMechanisms []string + TLS bool + func NewServerCapabilitiesFromMessage(msg *serverMessage) (*ServerCapabilities, error) + type Session struct + func (ses *Session) AuthMethod() AuthMethodType + func (ses *Session) Close() error + func (ses *Session) Collation(ctx context.Context) (*Collation, error) + func (ses *Session) CurrentSchema(ctx context.Context) (string, error) + func (ses *Session) ExecuteStatement(ctx context.Context, stmt string, args ...any) (*Result, error) + func (ses *Session) PrepareStatement(ctx context.Context, statement string) (*Prepared, error) + func (ses *Session) SessionID(ctx context.Context) (int, error) + func (ses *Session) SetCollation(ctx context.Context, name string) error + func (ses *Session) SetCurrentSchema(ctx context.Context, name string) error + func (ses *Session) SetTimeZone(ctx context.Context, name string) error + func (ses *Session) String() string + func (ses *Session) TimeZone(ctx context.Context) (*time.Location, error) + func (ses *Session) UsesTLS() bool