db_client

package
v0.0.0-...-9e87bf8 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PGClient

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

func NewPGClient

func NewPGClient(cfg config.PostgreSQL) *PGClient

func (*PGClient) Connect

func (c *PGClient) Connect() (*pgxpool.Pool, error)

Connect connects to the database and returns a pgxpool.Pool.

Jump to

Keyboard shortcuts

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