db

package
v0.0.0-...-e3cadf0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PSQLDatabase

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

PSQLDatabase accesses to PostgresSQL with other fields.

func NewPSQLDatabase

func NewPSQLDatabase(ctx context.Context, connString string, logger *log.Logger) (*PSQLDatabase, error)

NewPSQLDatabase creates a new connection to db and tries to connect to it.

func (*PSQLDatabase) Logger

func (db *PSQLDatabase) Logger() *log.Logger

Jump to

Keyboard shortcuts

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