Documentation
¶
Overview ¶
Package gomongofixtures contains methods for loading MongoDB data from files generated by mongoexport utility into your database for testing reasons or whatever reason you'd like.
Usage:
if err := Load(context.Background(), "localhost:27017", Fixture{ DB: "db", Path: "data.json", }); err != nil { panic(err) }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fixture ¶
Fixture describes a fixture: path to a file, database and collection the fixture should be loaded in.
Click to show internal directories.
Click to hide internal directories.