testdb

package
Version: v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package testdb supports opening ephemeral databases for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewForTest

func NewForTest(ctx context.Context, t testing.TB) (*sql.DB, func(context.Context))

NewForTest creates a temporary database. Returns a function for deleting the database.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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