databasetesting

package
v0.20.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateForDevel

func CreateForDevel(ctx context.Context, dsn string, recreate bool) (*pgxpool.Pool, error)

CreateForDevel creates and migrates a new database for development or testing.

If "recreate" is true, the database will be dropped and recreated.

func Migrate

func Migrate(ctx context.Context, dsn string) error

Migrate a database connection to the latest schema using Goose.

Types

This section is empty.

Jump to

Keyboard shortcuts

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