README ¶ duty Duty (Database Utility) is a home for common database tools, models and helpers. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func DefaultGormConfig() *gorm.Config func Migrate(connection string) 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) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DefaultGormConfig ¶ added in v1.0.6 func DefaultGormConfig() *gorm.Config func Migrate ¶ added in v1.0.10 func Migrate(connection string) error func NewDB ¶ func NewDB(connection string) (*sql.DB, error) func NewGorm ¶ func NewGorm(connection string, config *gorm.Config) (*gorm.DB, error) creates a new Gorm DB connection using the global pgx connection pool, must be called after NewPgxPool func NewPgxPool ¶ func NewPgxPool(connection string) (*pgxpool.Pool, error) Types ¶ This section is empty. Source Files ¶ View all Source files db.go Directories ¶ Show internal Expand all Path Synopsis functions hack migrate Module migrate models schema openapi types views Click to show internal directories. Click to hide internal directories.