Documentation
¶
Index ¶
- Constants
- func All(field Field, values ...interface{}) bson.M
- func And(clauses ...bson.M) bson.M
- func Comment(comment string) bson.M
- func Eq(field Field, value interface{}) bson.M
- func Exists(field Field, exists bool) bson.M
- func Gt(field Field, value interface{}) bson.M
- func Gte(field Field, value interface{}) bson.M
- func In(field Field, values ...interface{}) bson.M
- func Lt(field Field, value interface{}) bson.M
- func Lte(field Field, value interface{}) bson.M
- func Mod(field Field, divisor, remainder float64) bson.M
- func Ne(field Field, value interface{}) bson.M
- func Nin(field Field, values ...interface{}) bson.M
- func Nor(clauses ...bson.M) bson.M
- func Not(expr bson.M) bson.M
- func Or(clauses ...bson.M) bson.M
- func RegEx(field Field, regexp, options string) bson.M
- func Size(field Field, count int) bson.M
- func Text(field Field, search, lang string) bson.M
- func Type(field Field, t BSONType) bson.M
- func Where(field Field, code string, scope interface{}) bson.M
- type BSONType
- type Field
Constants ¶
View Source
const ( Double BSONType = 1 String = 2 Object = 3 Array = 4 Binary = 5 Undefined = 6 ObjectId = 7 Boolean = 8 Date = 9 Null = 10 RegExp = 11 JavaScript = 13 Symbol = 14 JavaScriptWS = 15 Int32 = 16 Timestamp = 17 Int64 = 18 MinKey = -1 MaxKey = 127 )
Variables ¶
This section is empty.
Functions ¶
func And ¶
And Joins query clauses with a logical AND returns all documents that match the conditions of both clauses.
func Mod ¶
Mod Performs a modulo operation on the value of a field and selects documents with a specified result.
func Nor ¶
Nor Joins query clauses with a logical NOR returns all documents that fail to match both clauses.
func Not ¶
Not Inverts the effect of a query expression and returns documents that do not match the query expression.
func Or ¶
Or Joins query clauses with a logical OR returns all documents that match the conditions of either clause.
Types ¶
Click to show internal directories.
Click to hide internal directories.