pgdb

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 9 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 {
	// contains filtered or unexported fields
}

func NewDB

func NewDB(logger *slog.Logger) *DB

func (*DB) Close

func (db *DB) Close() error

func (*DB) Conn

func (db *DB) Conn() *sqlx.DB

func (*DB) Connect

func (db *DB) Connect(dsn string, maxRetries int) error

func (*DB) Ping

func (db *DB) Ping(timeout time.Duration) error

type SlogLogger

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

func (*SlogLogger) Log

func (l *SlogLogger) Log(ctx context.Context, level sqldblogger.Level, msg string, data map[string]interface{})

Jump to

Keyboard shortcuts

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