Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + var Bool boolType + var DefaultParameterConverter defaultConverter + var ErrBadConn = errors.New("driver: bad connection") + var ErrRemoveArgument = errors.New("driver: remove argument from query") + var ErrSkip = errors.New("driver: skip fast-path; continue as if unimplemented") + var Int32 int32Type + var ResultNoRows noRows + var String stringType + func IsScanValue(v any) bool + func IsValue(v any) bool + type ColumnConverter interface + ColumnConverter func(idx int) ValueConverter + type Conn interface + Begin func() (Tx, error) + Close func() error + Prepare func(query string) (Stmt, error) + type ConnBeginTx interface + BeginTx func(ctx context.Context, opts TxOptions) (Tx, error) + type ConnPrepareContext interface + PrepareContext func(ctx context.Context, query string) (Stmt, error) + type Connector interface + Connect func(context.Context) (Conn, error) + Driver func() Driver + type Driver interface + Open func(name string) (Conn, error) + type DriverContext interface + OpenConnector func(name string) (Connector, error) + type Execer interface + Exec func(query string, args []Value) (Result, error) + type ExecerContext interface + ExecContext func(ctx context.Context, query string, args []NamedValue) (Result, error) + type IsolationLevel int + type NamedValue struct + Name string + Ordinal int + Value Value + type NamedValueChecker interface + CheckNamedValue func(*NamedValue) error + type NotNull struct + Converter ValueConverter + func (n NotNull) ConvertValue(v any) (Value, error) + type Null struct + Converter ValueConverter + func (n Null) ConvertValue(v any) (Value, error) + type Pinger interface + Ping func(ctx context.Context) error + type Queryer interface + Query func(query string, args []Value) (Rows, error) + type QueryerContext interface + QueryContext func(ctx context.Context, query string, args []NamedValue) (Rows, error) + type Result interface + LastInsertId func() (int64, error) + RowsAffected func() (int64, error) + type Rows interface + Close func() error + Columns func() []string + Next func(dest []Value) error + type RowsAffected int64 + func (RowsAffected) LastInsertId() (int64, error) + func (v RowsAffected) RowsAffected() (int64, error) + type RowsColumnTypeDatabaseTypeName interface + ColumnTypeDatabaseTypeName func(index int) string + type RowsColumnTypeLength interface + ColumnTypeLength func(index int) (length int64, ok bool) + type RowsColumnTypeNullable interface + ColumnTypeNullable func(index int) (nullable, ok bool) + type RowsColumnTypePrecisionScale interface + ColumnTypePrecisionScale func(index int) (precision, scale int64, ok bool) + type RowsColumnTypeScanType interface + ColumnTypeScanType func(index int) reflect.Type + type RowsNextResultSet interface + HasNextResultSet func() bool + NextResultSet func() error + type SessionResetter interface + ResetSession func(ctx context.Context) error + type Stmt interface + Close func() error + Exec func(args []Value) (Result, error) + NumInput func() int + Query func(args []Value) (Rows, error) + type StmtExecContext interface + ExecContext func(ctx context.Context, args []NamedValue) (Result, error) + type StmtQueryContext interface + QueryContext func(ctx context.Context, args []NamedValue) (Rows, error) + type Tx interface + Commit func() error + Rollback func() error + type TxOptions struct + Isolation IsolationLevel + ReadOnly bool + type Validator interface + IsValid func() bool + type Value any + type ValueConverter interface + ConvertValue func(v any) (Value, error) + type Valuer interface + Value func() (Value, error)