Documentation ¶ Index ¶ type Config func (c *Config) Build() (*gorm.DB, error) func (c *Config) InitBeforeInjectWithInitConfig(conf *initconf.InitConfig) type DB func (db *DB) Close() error func (db *DB) Config() any func (db *DB) Init() error func (db *DB) Inject(configName string) func (db *DB) Table(name string) *gorm.DB func (db *DB) TableName(name string) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config pkdb.Config func (*Config) Build ¶ func (c *Config) Build() (*gorm.DB, error) func (*Config) InitBeforeInjectWithInitConfig ¶ func (c *Config) InitBeforeInjectWithInitConfig(conf *initconf.InitConfig) type DB ¶ type DB pkdb.DB func (*DB) Close ¶ func (db *DB) Close() error func (*DB) Config ¶ func (db *DB) Config() any func (*DB) Init ¶ func (db *DB) Init() error func (*DB) Inject ¶ func (db *DB) Inject(configName string) TODO: func (*DB) Table ¶ func (db *DB) Table(name string) *gorm.DB func (*DB) TableName ¶ func (db *DB) TableName(name string) string Source Files ¶ View all Source files db.go Click to show internal directories. Click to hide internal directories.