go-mongoutils

module
v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2018 License: MIT

README

Go Mongo-Utils


This package helps in bootstrapping Mongo, including tasks such as creating database-clients, databases, and collections.

Go Docs.
Check example usage here: examples/example.go
More examples can be found in test-files.

Developer Notes


Since the base driver, mongo-go-driver, is in Alpha state, we run extensive integration tests within required domain to ensure this library functions well. Hence, a working MongoDB instance is required to run tests.

The tests will run using database lib_test_db, which will be deleted after each test to ensure test-independence. So do not use this database for anything.

By default, the test-suite will try to read connection string from environment-variable MONGODB_TEST_CONN_STR, however, if the variable is not present, the default string mongodb://root:root@localhost:27017 will be used for connection.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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