Versions in this module Expand all Collapse all v0 v0.3.1 Mar 25, 2020 v0.3.0 Mar 14, 2020 Changes in this version + type Closer interface + Close func() error + type DB interface + Begin func(ctx context.Context, opts *TxOptions) (Tx, error) + GetDB func() *sql.DB + Ping func(ctx context.Context) error + func New(db *sql.DB) DB + func Open(driverName, dsn string) (DB, error) + func WithLogger(db DB, logger log.Logger) DB + type Executor interface + Exec func(ctx context.Context, query string, args ...interface{}) (Result, error) + type Preparer interface + Prepare func(ctx context.Context, query string) (Stmt, error) + type Querier interface + Query func(ctx context.Context, query string, args ...interface{}) (*Rows, error) + QueryRow func(ctx context.Context, query string, args ...interface{}) *Row + type Result = sql.Result + type Row = sql.Row + type Rows = sql.Rows + type Stmt interface + Exec func(ctx context.Context, args ...interface{}) (Result, error) + GetStmt func() *sql.Stmt + Query func(ctx context.Context, args ...interface{}) (*Rows, error) + QueryRow func(ctx context.Context, args ...interface{}) *Row + type Tx interface + Commit func() error + GetTx func() *sql.Tx + Rollback func() error + Stmt func(ctx context.Context, stmt Stmt) Stmt + type TxOptions = sql.TxOptions