Documentation ¶
Index ¶
- func FromSQL(ctx context.Context, db *sql.DB) (*gorm.DB, error)
- func FromTx(ctx context.Context, tx *sql.Tx) (*gorm.DB, error)
- func GetDB(cfg config.Config, log logutil.Log, connString string) (*gorm.DB, error)
- func GetDBConnString(cfg config.Config) (string, error)
- func GetSQLDB(cfg config.Config, connString string) (*sql.DB, error)
- type FinishTxFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.