Documentation ¶ Index ¶ type DB func (d *DB) Close() error func (d *DB) Connect() error type DBMgr func GetDBMgr() *DBMgr func (dm *DBMgr) Add(name, driver, dsn string) (*DB, error) func (dm *DBMgr) Del(name string) func (dm *DBMgr) GetConn(name string) (*sql.DB, error) func (dm *DBMgr) GetDB(name string) (*DB, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type DB ¶ added in v0.0.11 type DB struct { // contains filtered or unexported fields } func (*DB) Close ¶ added in v0.0.11 func (d *DB) Close() error func (*DB) Connect ¶ added in v0.0.11 func (d *DB) Connect() error type DBMgr ¶ type DBMgr struct { // contains filtered or unexported fields } func GetDBMgr ¶ func GetDBMgr() *DBMgr func (*DBMgr) Add ¶ func (dm *DBMgr) Add(name, driver, dsn string) (*DB, error) func (*DBMgr) Del ¶ func (dm *DBMgr) Del(name string) func (*DBMgr) GetConn ¶ added in v0.0.11 func (dm *DBMgr) GetConn(name string) (*sql.DB, error) func (*DBMgr) GetDB ¶ added in v0.0.12 func (dm *DBMgr) GetDB(name string) (*DB, error) Source Files ¶ View all Source files dbmgr.go Click to show internal directories. Click to hide internal directories.