postgres

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 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 Postgres

type Postgres struct {
	*pgxpool.Pool
	*sqlc.Queries
}

func Get

func Get(conn string) (*Postgres, error)

func (*Postgres) CheckConstraint

func (pg *Postgres) CheckConstraint(err error, cst string) bool

func (*Postgres) WrapTx

func (pg *Postgres) WrapTx(ctx context.Context, txFunc func(p *Postgres) error) error

Jump to

Keyboard shortcuts

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