Generic MongoDB access layer for sweetrpg's Go services: connection setup/teardown and
Get/Query/Insert/Update/Delete functions parametrized over any model type.
Install
go get github.com/sweetrpg/mongodb.go
Packages
database - SetupDatabase/TeardownDatabase (connection lifecycle, configured via
DB_URI or the individual DB_HOST/DB_USER/DB_PW/etc. environment variables), and
generic Get[T]/Query[T]/Insert[T]/Update[T]/Delete[T] functions
constants - environment variable names and query-paging defaults