sqltest

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMySQLDatabase

func CreateMySQLDatabase(t *testing.T, name string, migrations []string) (*sql.DB, func())

func CreatePostgreSQLDatabase

func CreatePostgreSQLDatabase(t *testing.T, name string, schema bool, migrations []string) (*sql.DB, func())

func CreateSQLiteDatabase

func CreateSQLiteDatabase(t *testing.T, path string, migrations []string) (*sql.DB, func())

func MySQL

func MySQL(t *testing.T, migrations []string) (*sql.DB, func())

func PostgreSQL

func PostgreSQL(t *testing.T, migrations []string) (*sql.DB, func())

func PostgreSQLPgx

func PostgreSQLPgx(t *testing.T, migrations []string) (*pgx.Conn, func())

func SQLite

func SQLite(t *testing.T, migrations []string) (*sql.DB, func())

Types

This section is empty.

Jump to

Keyboard shortcuts

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