db

package
Version: v0.0.0-...-afa1830 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPSQLConn

func NewPSQLConn(
	dbURL string,
	maxOpenConns int,
	maxIdleConns int,
	connMaxLifetime time.Duration,
) (*sql.DB, error)

NewPSQLConn initiates a new connection to a postgresql server

func Rollback

func Rollback(ctx context.Context, tx *sql.Tx, msg string)

Rollback ...

func StartMigration

func StartMigration(dsn string, migrationDir string)

StartMigration use goose to run imported migrations

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL