database

package
v0.0.0-...-f10e182 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInstance

func NewInstance(cfg *config.DatabaseCredentials) (*sql.DB, error)

Types

type TestDatabase

type TestDatabase struct {
	DB  *sql.DB
	URI string
}

func SetupTestDatabase

func SetupTestDatabase() (*TestDatabase, error)

func (*TestDatabase) Migrate

func (t *TestDatabase) Migrate(up bool) error

Jump to

Keyboard shortcuts

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