db

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PGDatabase

type PGDatabase struct {
	Host             string
	Port             string
	User             string
	Password         string
	Database         string
	ConnectionString string
}

func NewPGDatabase

func NewPGDatabase(host, port, user, password, database string) *PGDatabase

NewPGDatabase creates a new PostgreSQL database connection

func (*PGDatabase) GetPGConnection

func (pg *PGDatabase) GetPGConnection() (*pgx.Conn, error)

func (*PGDatabase) GetPGPool

func (pg *PGDatabase) GetPGPool() (*pgxpool.Pool, error)

Jump to

Keyboard shortcuts

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