dbtest

package
v0.0.0-...-9451de5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package dbtest provides utilities test functions and types for interacting with the database during tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearAllCollections

func ClearAllCollections(db *mgo.Database) error

ClearAllCollections removes all registers from all collections in the given Mongo database.

func ClearAllCollectionsExcept

func ClearAllCollectionsExcept(db *mgo.Database, toKeep []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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