Documentation ¶ Index ¶ type Postgres func Get(conn string) (*Postgres, error) func (pg *Postgres) CheckConstraint(err error, cst string) bool func (pg *Postgres) WrapTx(ctx context.Context, txFunc func(p *Postgres) error) error 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 Source Files ¶ View all Source files postgres.go Click to show internal directories. Click to hide internal directories.