db

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 5 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) (*pgx.Conn, error)

func GetConnectionPool

func GetConnectionPool(ctx context.Context, dbConf DBConfig) (*pgxpool.Pool, 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