Categorygithub.com/benpate/data-mongo
modulepackage
0.28.10
Repository: https://github.com/benpate/data-mongo.git
Documentation: pkg.go.dev

# README

data-mongo

GoDoc Version Build Status Go Report Card Codecov

Mongodb adapter for the "data" interface

# Functions

ExpressionToBSON converts a data.Expression value into pure bson.
New returns a fully populated mongodb.Server.
NewCollection creates a new Collection object directly from a mongo.Collection.
NewIterator returns a fully populated Iterator object.
NewSession generates a new Session object from a mongo.Database.

# Structs

Collection wraps a mongodb.Collection with all of the methods required by the data.Collection interface.
Iterator wraps the mongodb Cursor object.
Server is an abstract representation of a MongoDB database.
Session represents a single database session, such as a session encompassing all of the database queries to respond to a single REST service call.