Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB acts as a handler for databases, providing both Gorm and plain SQL connection interfaces
func NewDB ¶
func NewDB(ds *DataSource) (*DB, error)
Constructor for database handlers, that provide both ORM/SQL connections
type DBUtil ¶
Common database utils: create/drop database, etc Acts as a content-aware proxy adapter for sql.DB
func NewDButil ¶
func NewDButil(ds *DataSource) (*DBUtil, error)
type DataSource ¶
func NewDSFromCFG ¶
func NewDSFromCFG(cfg *config.Config) *DataSource
func (*DataSource) DSN ¶
func (ds *DataSource) DSN() string
func (*DataSource) ShortDSN ¶
func (ds *DataSource) ShortDSN() string
Click to show internal directories.
Click to hide internal directories.