Versions in this module Expand all Collapse all v2 v2.0.0 Dec 11, 2023 Changes in this version + type Connect struct + func NewConnect(ctx context.Context, dsn client.DataSourceName) (c Connect, err error) + func (c Connect) Begin() (tx driver.Tx, err error) + func (c Connect) BeginTx(ctx context.Context, _ driver.TxOptions) (tx driver.Tx, err error) + func (c Connect) CheckNamedValue(nv *driver.NamedValue) error + func (c Connect) Close() error + func (c Connect) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (res driver.Result, err error) + func (c Connect) IsValid() bool + func (c Connect) Prepare(query string) (stmt driver.Stmt, err error) + func (c Connect) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) + func (c Connect) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (rows driver.Rows, err error) + func (c Connect) ResetSession(_ context.Context) (err error) + type Connector struct + func (c Connector) Connect(ctx context.Context) (conn driver.Conn, err error) + func (c Connector) Driver() driver.Driver + type Driver struct + func (d Driver) Open(name string) (c driver.Conn, err error) + func (d Driver) OpenConnector(name string) (driver.Connector, error) + type Result struct + func (r Result) LastInsertId() (int64, error) + func (r Result) RowsAffected() (int64, error) + type Rows struct + func (r *Rows) Close() error + func (r *Rows) ColumnTypeDatabaseTypeName(index int) string + func (r *Rows) ColumnTypeLength(index int) (length int64, ok bool) + func (r *Rows) ColumnTypeNullable(_ int) (nullable, ok bool) + func (r *Rows) ColumnTypePrecisionScale(_ int) (precision, scale int64, ok bool) + func (r *Rows) ColumnTypeScanType(index int) reflect.Type + func (r *Rows) Columns() (cols []string) + func (r *Rows) HasNextResultSet() bool + func (r *Rows) Next(dest []driver.Value) error + func (r *Rows) NextResultSet() error + type Statement struct + Id string + Response client.ParseResponse + SQL string + func (s Statement) Close() error + func (s Statement) Exec(args []driver.Value) (driver.Result, error) + func (s Statement) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error) + func (s Statement) NumInput() int + func (s Statement) Query(args []driver.Value) (driver.Rows, error) + func (s Statement) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error) + type Tx struct + func (t Tx) Commit() (err error) + func (t Tx) Rollback() (err error)