database

package
v0.0.0-...-ffe4551 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDatabase

func CreateDatabase(conn *pgxpool.Pool, database string) error

func DropDatabase

func DropDatabase(conn *pgxpool.Pool, database string) error

func Migrate

func Migrate(conn *pgxpool.Pool) error

Migrate handles the db migration logic.

func NewDatabasePool

func NewDatabasePool(ctx context.Context, connString string) (*pgxpool.Pool, error)

NewDatabasePool creates a new DB

Types

This section is empty.

Jump to

Keyboard shortcuts

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