Documentation ¶
Index ¶
- Variables
- func Exec(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func GetMaster() (*sql.DB, error)
- func Insert(ctx context.Context, query string, data interface{}, args ...interface{}) (sql.Result, error)
- func QueryRow(ctx context.Context, rst interface{}, query string, args ...interface{}) error
- func QueryRows(ctx context.Context, rst interface{}, query string, args ...interface{}) error
- func RegisterMaster(driverName string, db *sql.DB) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoDatabaseRegistered = errors.New("no db registered") ErrDriverNameNotMatch = errors.New("driver name not match") )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.