Versions in this module Expand all Collapse all v0 v0.2.1 Oct 9, 2026 v0.2.0 Oct 8, 2026 Changes in this version + const EngineMySQL + const EnginePostgres + const LevelDefault + const LevelReadCommitted + const LevelRepeatableRead + const LevelSerializable + var ErrNoRows = sql.ErrNoRows + var ErrTxDone = sql.ErrTxDone + func Instrument(hook Instrumentation) + func Open(c driver.Connector, engine string) (*sql.DB, error) + type Client interface + Reader func(ctx context.Context) (Conn, error) + Writer func(ctx context.Context) (Conn, error) + type Conn interface + BeginTx func(ctx context.Context, opts ...TxOption) (Tx, error) + Close func() error + ExecContext func(ctx context.Context, query string, args ...any) (Result, error) + PingContext func(ctx context.Context) error + PrepareContext func(ctx context.Context, query string) (Stmt, error) + QueryContext func(ctx context.Context, query string, args ...any) (Rows, error) + QueryRowContext func(ctx context.Context, query string, args ...any) Row + type Instrumentation func(c driver.Connector, engine string) (*sql.DB, error) + type IsolationLevel int + type Result interface + LastInsertId func() (int64, error) + RowsAffected func() (int64, error) + type Row interface + Err func() error + Scan func(dest ...any) error + type Rows interface + Close func() error + Err func() error + Next func() bool + Scan func(dest ...any) error + type Stmt interface + Close func() error + ExecContext func(ctx context.Context, args ...any) (Result, error) + QueryContext func(ctx context.Context, args ...any) (Rows, error) + QueryRowContext func(ctx context.Context, args ...any) Row + type Tx interface + Commit func() error + ExecContext func(ctx context.Context, query string, args ...any) (Result, error) + PrepareContext func(ctx context.Context, query string) (Stmt, error) + QueryContext func(ctx context.Context, query string, args ...any) (Rows, error) + QueryRowContext func(ctx context.Context, query string, args ...any) Row + Rollback func() error + type TxOption func(*TxOptions) + type TxOptions struct + Isolation IsolationLevel + ReadOnly bool + func ResolveTxOptions(opts []TxOption) TxOptions