internal

package
v0.0.0-...-75f2853 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTestCases

func BuildTestCases(t *testing.T, ddl DDL) ([]TestCase, Cleanup)

BuildTestCases BuildTestCases export

func ParseError

func ParseError(d dialect.Dialect, err error) error

func Quote

func Quote(d dialect.Dialect, identifier string) string

Quote Quote export

Types

type ByDropOrder

type ByDropOrder []Table

func (ByDropOrder) Len

func (a ByDropOrder) Len() int

func (ByDropOrder) Less

func (a ByDropOrder) Less(i, j int) bool

func (ByDropOrder) Swap

func (a ByDropOrder) Swap(i, j int)

type Cleanup

type Cleanup func()

Cleanup Cleanup export

type DDL

type DDL struct {
	// TODO: delete order
	// TODO: truncate order
	Tables   []Table
	Mysql    []string
	Postgres []string
	Sqlite3  []string
	Mssql    []string
}

DDL DDL export

type Table

type Table struct {
	DropOrder int
	Name      string
}

type TestCase

type TestCase struct {
	DB      *sql.DB
	Dialect dialect.Dialect
	// contains filtered or unexported fields
}

TestCase TestCase export

func (TestCase) SetUp

func (tc TestCase) SetUp(t *testing.T)

SetUp SetUp export

func (TestCase) TearDown

func (tc TestCase) TearDown(t *testing.T)

TearDown TearDown export

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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