postgres

package
v0.0.0-...-2d9fd4b Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

Database - repository

func NewDatabase

func NewDatabase(pool *pgxpool.Pool) *Database

NewDatabase - constructor

func (*Database) Connection

func (r *Database) Connection() *pgxpool.Pool

Connection - getter

func (*Database) Queries

func (r *Database) Queries() *dbs.Queries

Queries - getter

func (*Database) WithTransaction

func (r *Database) WithTransaction(ctx context.Context, fn func(queries *dbs.Queries) error) error

WithTransaction - start transaction

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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