database

package
v0.0.0-...-6a13fbe Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CODE_UNIQUE_CONSTRAINT = "23505"
)

Variables

This section is empty.

Functions

func Migrate

func Migrate(cfg config.Config)

Types

type Db

type Db struct {
	Conn *pgxpool.Pool
	*sqlc.Queries
}

func Connect

func Connect(cfg config.Config) Db

func (*Db) Close

func (db *Db) Close(ctx context.Context)

Jump to

Keyboard shortcuts

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