1package db23import (4 "context"5 "database/sql"67 "github.com/jmoiron/sqlx"8)910// Handler is a database handler.11type Handler interface {12 Rebind(string) string1314 Select(interface{}, string, ...interface{}) error15 Get(interface{}, string, ...interface{}) error16 Queryx(string, ...interface{}) (*sqlx.Rows, error)17 QueryRowx(string, ...interface{}) *sqlx.Row18 Exec(string, ...interface{}) (sql.Result, error)1920 SelectContext(context.Context, interface{}, string, ...interface{}) error21 GetContext(context.Context, interface{}, string, ...interface{}) error22 QueryxContext(context.Context, string, ...interface{}) (*sqlx.Rows, error)23 QueryRowxContext(context.Context, string, ...interface{}) *sqlx.Row24 ExecContext(context.Context, string, ...interface{}) (sql.Result, error)25}