postgres

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(connURL string) error

Migrate to run up migrations

func NewMigrator

func NewMigrator(dbConnURL string) (*migrate.Migrate, error)

func Open

func Open(config config.DBConfig) (*pgxpool.Pool, error)

Open will connect to the DB with custom configuration

func Rollback

func Rollback(connURL string, count int) error

Rollback to run up migrations

func ToVersion

func ToVersion(version uint, connURL string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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