db

package
v0.0.0-...-085a19f Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Module is the fx module for the database.

Functions

func NewDb

func NewDb(pool *pgxpool.Pool) *sqlc.Queries

NewDb creates a new db instance

func NewPgxPool

func NewPgxPool(cfg *config.ServerConfig) (*pgxpool.Pool, error)

NewPgxPool creates a new postgres pool.

func RegisterDBPoolHooks

func RegisterDBPoolHooks(lc fx.Lifecycle, pool *pgxpool.Pool)

RegisterDBPoolHooks starts and stops the DB pool.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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