Documentation ¶
Index ¶
- Variables
- func DefaultGormConfig() *gorm.Config
- func InitDB(connection string, migrateOpts *migrate.MigrateOptions) (*dutyContext.Context, error)
- func Migrate(connection string, opts *migrate.MigrateOptions) error
- func NewDB(connection string) (*sql.DB, error)
- func NewGorm(connection string, config *gorm.Config) (*gorm.DB, error)
- func NewPgxPool(connection string) (*pgxpool.Pool, error)
- func SetupDB(connection string, migrateOpts *migrate.MigrateOptions) (gormDB *gorm.DB, pgxpool *pgxpool.Pool, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultQueryTimeout = 30 * time.Second
Functions ¶
func DefaultGormConfig ¶
func InitDB ¶
func InitDB(connection string, migrateOpts *migrate.MigrateOptions) (*dutyContext.Context, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.