dbx

package
v0.11.0-alpha.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SQLiteMemory = iota
	SQLiteFile
	SQLiteDebug
)

Variables

This section is empty.

Functions

func ConfigFile

func ConfigFile(t testing.TB, values map[string]interface{}) string

func Ping

func Ping(conn *pop.Connection) error

func RunCockroach

func RunCockroach(t testing.TB, testDB string) string

func RunMySQL

func RunMySQL(t testing.TB, testDB string) string

func RunPostgres

func RunPostgres(t testing.TB, testDB string) string

Types

type DsnT

type DsnT struct {
	Name                   string
	Conn                   string
	MigrateUp, MigrateDown bool
}

func GetDSNs

func GetDSNs(t testing.TB, debugSqliteOnDisk bool) []*DsnT

func GetSqlite

func GetSqlite(t testing.TB, mode sqliteMode) *DsnT

Jump to

Keyboard shortcuts

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