duty

package module
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 14 Imported by: 22

README

duty

Duty (Database Utility) is a home for common database tools, models and helpers.

Documentation

Index

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.

Directories

Path Synopsis
hack
migrate Module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL