testdb

package
v0.0.0-...-9f32554 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open() (*sqlx.DB, error)

Open returns a new database connection for the test database.

func SeedItems

func SeedItems(dbc *sqlx.DB, lists []list.List) ([]item.Item, error)

SeedItems handles seeding the item table in the database for integration tests.

func SeedLists

func SeedLists(dbc *sqlx.DB) ([]list.List, error)

SeedLists handles seeding the list table in the database for integration tests.

func Truncate

func Truncate(dbc *sqlx.DB) error

Truncate removes all seed data from the test database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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