database

package
v0.0.0-...-4aad9a5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DbConnStringParsingError = "DB00001"
	DbTxPoolCreatingError    = "DB00002"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PgPool

type PgPool struct {
	// contains filtered or unexported fields
}

func New

func New(config *config.PgConfig, logger *zap.SugaredLogger) (*PgPool, *e.ErrorData)

func (*PgPool) GetPool

func (p *PgPool) GetPool() *pgxpool.Pool

func (*PgPool) ShutDownPool

func (p *PgPool) ShutDownPool()

Jump to

Keyboard shortcuts

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