test

package
v0.17.0-otel-1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: Apache-2.0 Imports: 13 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 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

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
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