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