Versions in this module Expand all Collapse all v1 v1.1.0 Nov 27, 2024 v1.0.0 Nov 25, 2024 Changes in this version + var ErrConnDone = sql.ErrConnDone + var ErrNoRows = sql.ErrNoRows + var ErrTxDone = sql.ErrTxDone + func Drivers() []string + func Register(name string, driver driver.Driver) + type ColumnType = sql.ColumnType + type Conn struct + func (c *Conn) BeginTx(ctx context.Context, opts *TxOptions) (*Tx, error) + func (c *Conn) Close() error + func (c *Conn) ExecContext(ctx context.Context, query String, args ...any) (Result, error) + func (c *Conn) PingContext(ctx context.Context) error + func (c *Conn) PrepareContext(ctx context.Context, query String) (*Stmt, error) + func (c *Conn) QueryContext(ctx context.Context, query String, args ...any) (*Rows, error) + func (c *Conn) QueryRowContext(ctx context.Context, query String, args ...any) *Row + type DB struct + func Open(driverName, dataSourceName string) (*DB, error) + func OpenDB(c driver.Connector) *DB + func (db *DB) Begin() (*Tx, error) + func (db *DB) BeginTx(ctx context.Context, opts *TxOptions) (*Tx, error) + func (db *DB) Close() error + func (db *DB) Conn(ctx context.Context) (*Conn, error) + func (db *DB) Exec(query String, args ...any) (Result, error) + func (db *DB) ExecContext(ctx context.Context, query String, args ...any) (Result, error) + func (db *DB) Ping() error + func (db *DB) PingContext(ctx context.Context) error + func (db *DB) Prepare(query String) (*Stmt, error) + func (db *DB) PrepareContext(ctx context.Context, query String) (*Stmt, error) + func (db *DB) Query(query String, args ...any) (*Rows, error) + func (db *DB) QueryContext(ctx context.Context, query String, args ...any) (*Rows, error) + func (db *DB) QueryRow(query String, args ...any) *Row + func (db *DB) QueryRowContext(ctx context.Context, query String, args ...any) *Row + func (db *DB) SetConnMaxIdleTime(d time.Duration) + func (db *DB) SetConnMaxLifetime(d time.Duration) + func (db *DB) SetMaxIdleConns(n int) + func (db *DB) SetMaxOpenConns(n int) + func (db *DB) Stats() DBStats + type DBStats = sql.DBStats + type IsolationLevel = sql.IsolationLevel + type NamedArg = sql.NamedArg + type NullBool = sql.NullBool + type NullFloat64 = sql.NullFloat64 + type NullInt32 = sql.NullInt32 + type NullInt64 = sql.NullInt64 + type NullString = sql.NullString + type NullTime = sql.NullTime + type Out = sql.Out + type RawBytes = sql.RawBytes + type RealNumber interface + type Result = sql.Result + type Row = sql.Row + type Rows = sql.Rows + type Scanner = sql.Scanner + type Stmt = sql.Stmt + type String struct + func New(text stringConstant) String + func NewFromNumber[N RealNumber](i N) String + func StringConcat(ss ...String) String + func StringJoin(ss []String, sep String) String + func StringSplit(s String, sep String) []String + func (t String) String() string + type Tx struct + func (tx *Tx) Commit() error + func (tx *Tx) Exec(query String, args ...any) (Result, error) + func (tx *Tx) ExecContext(ctx context.Context, query String, args ...any) (Result, error) + func (tx *Tx) Prepare(query String) (*Stmt, error) + func (tx *Tx) PrepareContext(ctx context.Context, query String) (*Stmt, error) + func (tx *Tx) Query(query String, args ...any) (*Rows, error) + func (tx *Tx) QueryContext(ctx context.Context, query String, args ...any) (*Rows, error) + func (tx *Tx) QueryRow(query String, args ...any) *Row + func (tx *Tx) QueryRowContext(ctx context.Context, query String, args ...any) *Row + func (tx *Tx) Rollback() error + func (tx *Tx) Stmt(stmt *Stmt) *Stmt + func (tx *Tx) StmtContext(ctx context.Context, stmt *Stmt) *Stmt + type TxOptions = sql.TxOptions