pg

package
v0.0.0-...-2984195 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresDB

type PostgresDB struct {
	// contains filtered or unexported fields
}
var (
	PgClient *PostgresDB
)

func ConnectPostgres

func ConnectPostgres(ctx context.Context, connString string) (*PostgresDB, error)

func (*PostgresDB) Close

func (pg *PostgresDB) Close()

func (*PostgresDB) GetUser

func (pg *PostgresDB) GetUser(ctx context.Context, id int) (*model.User, error)

func (*PostgresDB) Ping

func (pg *PostgresDB) Ping(ctx context.Context) error

Jump to

Keyboard shortcuts

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