package
0.0.0-20250304192308-25ea0fd7a126
Repository: https://github.com/mongodb/anser.git
Documentation: pkg.go.dev

# Functions

NewCombinedIterator produces a DocumentIterator that is an mgo.Iter, with a modified Close() method that also closes the provided mgo session after closing the iterator.
ResolveCursorOne decodes the first result in a cursor, for use in "FindOne" cases.
No description provided by the author
WrapClient provides the anser database Session interface, which is modeled on mgo's interface but based on new mongo.Client fundamentals.

# Variables

No description provided by the author

# Structs

No description provided by the author
Change represents the options that you can pass to the findAndModify operation.
ChangeInfo represents the data returned by Update and Upsert documents.
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
Collection provides access to the common query functionality of the mgo.Collection type.
Database provides a very limited subset of the mgo.DB type.
Iterator is a more narrow subset of mgo's Iter type that provides the opportunity to mock results, and avoids a strict dependency between mgo and migrations definitions.
Processor defines the process for processing a stream of documents using an Iterator, which resembles mgo's Iter operation.
No description provided by the author
Results reflect the output of a database operation and is part of the query interface.
Session provides a subset of the functionality of the *mgo.Session type.

# Type aliases

Document is, like bson.M, a wrapper for an un-ordered map type.
MigrationOperation defines the function object that performs the transformation in the manual migration migrations.