database

package
v0.0.0-...-36a48ad Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDuplicateKey = errors.New("database.postgres.duplicatekey")

ErrDuplicateKey is used to signify a duplicate key error

Functions

func DuplicateKeyError

func DuplicateKeyError(err error) bool

DuplicateKeyError tests an error to see if it is a Duplicate Key Error

Types

type PostGresDB

type PostGresDB struct {
	PgDbSession *sql.DB
	// contains filtered or unexported fields
}

func Connect

func Connect(host, user, pass, db, port string) (*PostGresDB, error)

func (*PostGresDB) Disconnect

func (pgdbh *PostGresDB) Disconnect()

Disconnect close down our database connection

Jump to

Keyboard shortcuts

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