test

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Databases = []Database{
	MySQL,
	PostgreSQL,
	SQLite,
	MongoDB,
}
View Source
var MongoDB = mongodb.MongoDB
View Source
var MySQL = mysql.MySQL
View Source
var PostgreSQL = postgresql.PostgreSQL
View Source
var SQLite = sqlite.SQLite

Functions

func End

func End(t *testing.T, db Database, e engine.Engine, mockDBName string)

func Migrate added in v0.25.0

func Migrate(t *testing.T, db Database, e engine.Engine, mockDB string)

func RunParallel

func RunParallel(t *testing.T, dbs []Database, invoke func(t *testing.T, db Database, ctx context.Context))

func RunSerial

func RunSerial(t *testing.T, dbs []Database, invoke func(t *testing.T, db Database, ctx context.Context))

func Start

func Start(t *testing.T, db Database, e engine.Engine, queries []string) string

func Teardown added in v0.25.0

func Teardown(t *testing.T, db Database, mockDBName string)

Types

type Database

type Database interface {
	Name() string
	ConnectionString(mockDBName string) string
	SetupDatabase(t *testing.T) string
	TeardownDatabase(t *testing.T, mockDBName string)
}

Directories

Path Synopsis
databases
helpers
generate
Package generate runs prisma generate in parallel
Package generate runs prisma generate in parallel

Jump to

Keyboard shortcuts

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