db

package
v0.0.0-...-97167ef Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(dsn string) (int, error)

Migrate performs PostgreSQL migrations from the migrations/ directory, using the provided connection string

Types

type DB

type DB struct {
	Sqlx *sqlx.DB
}

DB is a struct containing the Sqlx connection instance.

func New

func New(dsn string) (*DB, error)

New creates a new database connection using the supplied PostgreSQL connection string.

Jump to

Keyboard shortcuts

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