Versions in this module Expand all Collapse all v0 v0.1.0 Jan 17, 2022 Changes in this version + var ErrBadAffectedCount = errors.New("bad affected count") + func Begin() (*sql.Tx, error) + func BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error) + func CheckAffected(rslt sql.Result, sqlErr error, expected ...int) error + func Close() error + func Conn(ctx context.Context) (*sql.Conn, error) + func Driver() driver.Driver + func Exec(query string, args ...interface{}) (sql.Result, error) + func ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + func Init(driverName, dataSourceName string) (err error) + func IsMySQLDuplicate(err error) bool + func Ping() error + func PingContext(ctx context.Context) error + func Prepare(query string) (*sql.Stmt, error) + func PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) + func Query(query string, args ...interface{}) (*sql.Rows, error) + func QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + func QueryRow(query string, args ...interface{}) *sql.Row + func QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row + func SetConnMaxLifetime(d time.Duration) + func SetMaxIdleConns(n int) + func SetMaxOpenConns(n int) + func Stats() sql.DBStats + type MapBool map[string]bool + func (p *MapBool) Scan(src interface{}) error + func (p MapBool) Value() (driver.Value, error) + type MapString map[string]string + func (p *MapString) Scan(src interface{}) error + func (p MapString) Value() (driver.Value, error)