Documentation ¶ Index ¶ type DB func (d *DB) Close() error func (d *DB) Open(maxOpen, maxIdle int) (*sql.DB, 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 ¶ type DB struct { // contains filtered or unexported fields } func (*DB) Close ¶ func (d *DB) Close() error func (*DB) Open ¶ func (d *DB) Open(maxOpen, maxIdle int) (*sql.DB, 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 ¶ func (dm *DBMgr) GetConn(name string) (*sql.DB, error) func (*DBMgr) GetDB ¶ 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.