postgres

package
v0.0.0-...-6a52fcc Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 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 Config

type Config struct {
	Host    string
	Port    string
	User    string
	Pass    string
	DBName  string
	SslMode string
}

type Postgres

type Postgres struct {
	SqlxDB *sqlx.DB
}

func NewConnection

func NewConnection(ctx context.Context, conf *Config) (*Postgres, error)

func (*Postgres) Close

func (db *Postgres) Close()

Jump to

Keyboard shortcuts

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