sqlite3_test

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchmarkExec

func BenchmarkExec(b *testing.B)

BenchmarkExec is benchmark for exec

func BenchmarkParams

func BenchmarkParams(b *testing.B)

BenchmarkParams is benchmark for params

func BenchmarkQuery

func BenchmarkQuery(b *testing.B)

BenchmarkQuery is benchmark for query

func BenchmarkRows

func BenchmarkRows(b *testing.B)

BenchmarkRows is benchmark for rows

func BenchmarkStmt

func BenchmarkStmt(b *testing.B)

BenchmarkStmt is benchmark for statement

func BenchmarkStmtRows

func BenchmarkStmtRows(b *testing.B)

BenchmarkStmtRows is benchmark for statement rows

func RunTests

func RunTests(t *testing.T, d *sql.DB, dialect Dialect)

RunTests runs the SQL test suite

func TestBlobs

func TestBlobs(t *testing.T)

TestBlobs is test for blobs

func TestManyQueryRow

func TestManyQueryRow(t *testing.T)

TestManyQueryRow is test for many query row

func TestPreparedStmt

func TestPreparedStmt(t *testing.T)

TestPreparedStmt is test for prepared statement

func TestResult

func TestResult(t *testing.T)

TestResult is test for result

func TestTxQuery

func TestTxQuery(t *testing.T)

TestTxQuery is test for transactional query

Types

type DB

type DB struct {
	*testing.T
	*sql.DB
	// contains filtered or unexported fields
}

DB provide context for the tests

type Dialect

type Dialect int

Dialect is a type of dialect of databases.

const (
	SQLITE     Dialect = iota // SQLITE mean SQLite3 dialect
	POSTGRESQL                // POSTGRESQL mean PostgreSQL dialect
	MYSQL                     // MYSQL mean MySQL dialect
)

Dialects for databases.

Jump to

Keyboard shortcuts

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