db

package
v0.0.0-...-8105f42 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbService

type DbService struct {
	DB  *pgxpool.Pool
	TX  pgx.Tx
	Err error
}

func NewDbService

func NewDbService(ctx context.Context) *DbService

type PgConfig

type PgConfig struct {
	Ctx context.Context
}

func New

func New(ctx context.Context) *PgConfig

func (*PgConfig) Conn

func (p *PgConfig) Conn() (*pgxpool.Pool, error)

func (*PgConfig) DB

func (p *PgConfig) DB() (*pgxpool.Pool, error)

func (*PgConfig) TX

func (p *PgConfig) TX() (pgx.Tx, error)

Jump to

Keyboard shortcuts

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