sql

package
v0.0.0-...-5fcdcab Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDB

type IDB interface {
	DB(ctx context.Context) bun.IDB
	SqlDB(ctx context.Context) *sql.DB
}

type PostgresDB

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

func NewPostgresDB

func NewPostgresDB(i do.Injector) (*PostgresDB, error)

func (*PostgresDB) DB

func (pd *PostgresDB) DB(ctx context.Context) bun.IDB

func (*PostgresDB) Shutdown

func (pd *PostgresDB) Shutdown(ctx context.Context) error

func (*PostgresDB) SqlDB

func (pd *PostgresDB) SqlDB(ctx context.Context) *sql.DB

Jump to

Keyboard shortcuts

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