postgres

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresConfiguer

type PostgresConfiguer interface {
	URI() string
}

type PostgresConnection

type PostgresConnection struct {
	DB *pgxpool.Pool
}

PostgresConnection holds db conn

func NewPostgresConnection

func NewPostgresConnection() *PostgresConnection

func (*PostgresConnection) Connect

func (p *PostgresConnection) Connect(ctx context.Context, cfg PostgresConfiguer)

Connect make connect and ping db

func (*PostgresConnection) Disconnect added in v1.1.1

func (p *PostgresConnection) Disconnect(ctx context.Context)

Close close connection

Jump to

Keyboard shortcuts

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