postgres

package
v0.0.0-...-be3f9aa Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConnectionFailed = errors.New("failed to connect to database")
	ErrMigrationsFailed = errors.New("migrate up failed")
)

Functions

func DB

func DB(dsn string) (*sql.DB, error)

func NewDB

func NewDB(c Config) (*sql.DB, error)

Types

type Config

type Config interface {
	GetString(key string) string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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