Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDB ¶
func UnregisterDB ¶
Types ¶
type DB ¶
type DBProvider ¶
type DBProvider interface { DB() gorp.SqlExecutor Tx() error TxSavepoint() (SavePoint, error) Commit() error Rollback() error RollbackTo(SavePoint) error Close() error Ping() error PingContext(context.Context) error Stats() sql.DBStats }
func NewDBProvider ¶
func NewDBProvider(name string) (DBProvider, error)
func NewTempDBProvider ¶
func NewTempDBProvider(db DB) DBProvider
Click to show internal directories.
Click to hide internal directories.