db

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	Pool *pgxpool.Pool
	// contains filtered or unexported fields
}

func Open

func Open(ctx context.Context, cfg *config.Config) (*DB, error)

func (*DB) Close

func (db *DB) Close()

func (*DB) ColumnExists

func (db *DB) ColumnExists(ctx context.Context, schema, table, column string) (bool, error)

func (*DB) ExecUpgrade

func (db *DB) ExecUpgrade(ctx context.Context, sql string, args ...any) error

func (*DB) RunFile

func (db *DB) RunFile(ctx context.Context, path string, preSQL string, vars map[string]string) error

Jump to

Keyboard shortcuts

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