libdb

package
v0.0.0-...-00f2437 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(dbCfg config.DBConfig) (*sql.DB, error)

Connect to a PostgreSQL database

func ConnectX

func ConnectX(dbCfg config.DBConfig) (*sqlx.DB, error)

ConnectX connects to a PostgreSQL database an then makes an sqlx.DB instance

func Migrate

func Migrate(db *sql.DB) error

Migrate runs migrations on a database

Types

This section is empty.

Jump to

Keyboard shortcuts

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