An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 6.3% on proxy.golang.org

proxy.golang.org : github.com/mbretter/go-mongodb

Package mongodb wraps the go mongodb driver by providing a so-called "Connector", this makes the mongodb connection testable/mockable. The original driver is not really testable, it is hard/impossible to mock the package. Usually in go the interfaces are defined at the consumer side, but in this case an interface is provided to keep the codebase small. The provided connector interface can easily be mocked using mockery. Additionaly this package provides some datatypes, like UUID, ObjectId, NullString, nullable numbers and a datatype for storing binary data. Example demonstrates the process of creating, reading, updating, and deleting a user in a MongoDB database.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/mbretter/go-mongodb
License: BSD-3-Clause
Latest release: 7 months ago
First release: 7 months ago
Namespace: github.com/mbretter
Last synced: 7 days ago

    Loading...
    Readme
    Loading...