package mongoopt
import "go.mongodb.org/mongo-driver/mongo/mongoopt"
Index ¶
Types ¶
type Collation ¶
type Collation struct { Locale string `bson:",omitempty"` CaseLevel bool `bson:",omitempty"` CaseFirst string `bson:",omitempty"` Strength int `bson:",omitempty"` NumericOrdering bool `bson:",omitempty"` Alternate string `bson:",omitempty"` MaxVariable string `bson:",omitempty"` Backwards bool `bson:",omitempty"` }
Collation allows users to specify language-specific rules for string comparison, such as rules for lettercase and accent marks.
func (*Collation) Convert ¶
Convert changes a Collation instance into a core options Collation.
type CursorType ¶
type CursorType int8
CursorType specifies whether a cursor should close when the last data is retrieved. See NonTailable, Tailable, and TailableAwait.
const ( // NonTailable specifies that a cursor should close after retrieving the last data. NonTailable CursorType = iota // Tailable specifies that a cursor should not close when the last data is retrieved. Tailable // TailableAwait specifies that a cursor should not close when the last data is retrieved and // that it should block for a certain amount of time for new data before returning no data. TailableAwait )
type FullDocument ¶
type FullDocument string
FullDocument specifies whether a change stream should include a copy of the entire document that was changed from some time after the change occurred.
const ( // Default does not include a document copy Default FullDocument = "default" // UpdateLookup includes a delta describing the changes to the document and a copy of the entire document that // was changed UpdateLookup FullDocument = "updateLookup" )
type ReturnDocument ¶
type ReturnDocument int8
ReturnDocument specifies whether a findAndUpdate operation should return the document as it was before the update or as it is after the update.
const ( // Before specifies that findAndUpdate should return the document as it was before the update. Before ReturnDocument = iota // After specifies that findAndUpdate should return the document as it is after the update. After )
Source Files ¶
mongoopt.go
- Version
- v0.0.10
- Published
- Jul 26, 2018
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 7 minutes ago –
Tools for package owners.