postgres

package
v0.0.0-...-d9936ee Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 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 DBConnString

type DBConnString string

type DBEngine

type DBEngine interface {
	GetDB() *sql.DB
	Configure(...Option) DBEngine
	Close()
}

func NewPostgresDB

func NewPostgresDB(url DBConnString) (DBEngine, error)

type Option

type Option func(*postgres)

func ConnAttempts

func ConnAttempts(attempts int) Option

func ConnTimeout

func ConnTimeout(timeout time.Duration) Option

Jump to

Keyboard shortcuts

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