satellitedbtest

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: AGPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// DefaultSqliteConn is a connstring that is inmemory
	DefaultSqliteConn = "sqlite3://file::memory:?mode=memory"
)

Variables

This section is empty.

Functions

func Bench added in v0.12.0

func Bench(b *testing.B, bench func(b *testing.B, db satellite.DB))

Bench method will iterate over all supported databases. Will establish connection and will create tables for each DB.

func Run

func Run(t *testing.T, test func(t *testing.T, db satellite.DB))

Run method will iterate over all supported databases. Will establish connection and will create tables for each DB.

Types

type Database

type Database struct {
	Name    string
	URL     string
	Message string
}

Database describes a test database

func Databases

func Databases() []Database

Databases returns default databases.

Jump to

Keyboard shortcuts

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