postgres

package
v0.0.0-...-732a6c7 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(url string, maxOpenConns int) *sqlx.DB

New initialize a new postgres connection

func RollbackDatabaseMigration

func RollbackDatabaseMigration(conf *config.Config) error

RollbackDatabaseMigration - rollback the database migration

func RunDatabaseMigrations

func RunDatabaseMigrations(conf *config.Config) error

RunDatabaseMigrations - run the next migration, needs to be run multiple times if there are multiple

Types

This section is empty.

Jump to

Keyboard shortcuts

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