db

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnection

func GetConnection(ctx context.Context, dbConf DBConfig, level logger.LogLevel) (*pgx.Conn, error)

func GetConnectionPool

func GetConnectionPool(ctx context.Context, dbConf DBConfig, level logger.LogLevel) (*pgxpool.Pool, error)

func Migrate

func Migrate(postgresURL string) error

Types

type DBConfig

type DBConfig struct {
	User string
	Pwd  string
	Host string
	Port string
	Name string
}

Directories

Path Synopsis
entities

Jump to

Keyboard shortcuts

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