testsqlz

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustApplyMigrations

func MustApplyMigrations(dbSpec *sqlz.ConfigDBSpec, migrations *sqlz.ConfigMigrations, max int) int

MustApplyMigrations applies the given migrations, panics on error.

func MustOpen

func MustOpen(dbSpec *sqlz.ConfigDBSpec) *sql.DB

MustOpen opens the SQLite database, panics on error.

func MustRevertMigrations

func MustRevertMigrations(dbSpec *sqlz.ConfigDBSpec, migrations *sqlz.ConfigMigrations, max int) int

MustRevertMigrations reverts the given migrations, panics on error.

Types

type Helper

type Helper struct {
	// contains filtered or unexported fields
}

Helper is a test helper for PG.

func (*Helper) AfterSuite

func (h *Helper) AfterSuite(ctx context.Context, t *testing.T)

AfterSuite implements fixturez.AfterSuite.

func (*Helper) BeforeSuite

func (h *Helper) BeforeSuite(ctx context.Context, t *testing.T) context.Context

BeforeSuite implements fixturez.BeforeSuite.

Jump to

Keyboard shortcuts

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