db

package
v0.0.0-...-ce97478 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

type Postgres struct {
	Conn *pgx.Conn
}

func NewPostgres

func NewPostgres() *Postgres

func (*Postgres) Close

func (p *Postgres) Close(ctx context.Context) error

func (*Postgres) Open

func (p *Postgres) Open(ctx context.Context, url string) (*pgx.Conn, error)

func (*Postgres) Ping

func (p *Postgres) Ping(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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