go-mongo

module
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT

README

go-mongo

Provides some potentially useful functionality wrapped around the MongoDB go driver.

Caveats

You are more than welcome to use this software as is but these are utility packages constructed by the author for use in personal projects. The author makes occasional changes and attempts to follow proper versioning and release protocols, however this code should not be considered production quality or maintained.

Consider copying the code into your own project and modifying to fit your need.

See the source or godoc for documentation.

Package mdb

Provides infrastructure for connecting to a Mongo database and collections. Collections can be untyped (i.e. interface{}) or typed using generics. Support is provided for defining indexes at the time of collection creation. Collections support a simplified set of functionality and the basic mongo.collection functionality is always accessible.

Package mdbson

Supports marshaling and unmarshaling structs with fields that are interfaces.[^1]

[^1]: This is implemented the same way as madkins23/go-serial

Directories

Path Synopsis
cmd
dbping
Package main implements a simple application to attempt to connect to a Mongo database.
Package main implements a simple application to attempt to connect to a Mongo database.
Package mdb provides infrastructure for using Mongo from Go.
Package mdb provides infrastructure for using Mongo from Go.
Package mdbson supports serialization and deserialization using BSON.
Package mdbson supports serialization and deserialization using BSON.

Jump to

Keyboard shortcuts

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