sqltest

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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