Documentation
¶
Index ¶
- func ByID(id interface{}) bson.D
- func NewList(list ...interface{}) []interface{}
- type Document
- type Filter
- func And(docs ...interface{}) *Filter
- func Eq(k string, v interface{}) *Filter
- func Exists(k string, v interface{}) *Filter
- func FilterBy(k string, v interface{}) *Filter
- func Gt(k string, v interface{}) *Filter
- func Gte(k string, v interface{}) *Filter
- func In(k string, v ...interface{}) *Filter
- func Lt(k string, v interface{}) *Filter
- func Lte(k string, v interface{}) *Filter
- func Neq(k string, v interface{}) *Filter
- func NewFilterBuilder() *Filter
- func Nin(k string, v ...interface{}) *Filter
- func NotOr(docs ...interface{}) *Filter
- func Or(docs ...interface{}) *Filter
- func RegEx(k, pattern, options string) *Filter
- func (filter *Filter) And(docs ...interface{}) *Filter
- func (filter *Filter) Eq(k string, v interface{}) *Filter
- func (filter *Filter) Exists(k string, v interface{}) *Filter
- func (filter *Filter) Gt(k string, v interface{}) *Filter
- func (filter *Filter) Gte(k string, v interface{}) *Filter
- func (filter *Filter) In(k string, v ...interface{}) *Filter
- func (filter *Filter) Lt(k string, v interface{}) *Filter
- func (filter *Filter) Lte(k string, v interface{}) *Filter
- func (filter *Filter) MarshalBSON() ([]byte, error)
- func (filter *Filter) Neq(k string, v interface{}) *Filter
- func (filter *Filter) Nin(k string, v ...interface{}) *Filter
- func (filter *Filter) NotOr(docs ...interface{}) *Filter
- func (filter *Filter) Or(docs ...interface{}) *Filter
- func (filter *Filter) RegEx(k, pattern, options string) *Filter
- func (filter *Filter) Set(k string, v interface{}) *Filter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Document ¶
func NewDocumentBuilder ¶
func NewDocumentBuilder() *Document
func NewDocumentSet ¶
func SetOnInsert ¶
SetOnInsert is equivalent to !expr0 || !expr1 || !expr...
func (*Document) MarshalBSON ¶
func (*Document) SetOnInsert ¶
type Filter ¶
func Eq ¶
Eq creates a new query object and sets bson field k with row[k][$eq]=v which can be express like row[k] == v
func Gt ¶
Gt creates a new query object and sets bson field k with row[k][$eq]=v which can be express like row[k] == v
func Gte ¶
Gte creates a new query object and sets bson field k with row[k][$eq]=v which can be express like row[k] == v
func In ¶
In creates a new query object and sets bson field k with row[k][$ne]=v which can be express like row[k] != v
func Lt ¶
Lt creates a new query object and sets bson field k with row[k][$eq]=v which can be express like row[k] == v
func Lte ¶
Lte creates a new query object and sets bson field k with row[k][$eq]=v which can be express like row[k] == v
func Neq ¶
Neq creates a new query object and sets bson field k with row[k][$ne]=v which can be express like row[k] != v
func NewFilterBuilder ¶
func NewFilterBuilder() *Filter
func Nin ¶
Nin creates a new query object and sets bson field k with row[k][$ne]=v which can be express like row[k] != v
func NotOr ¶
func NotOr(docs ...interface{}) *Filter
NotOr is equivalent to !expr0 || !expr1 || !expr...
func (*Filter) Gte ¶
Gte sets bson field k with row[k][$gte]=v which can be express like row[k] == v
func (*Filter) Lte ¶
Lte sets bson field k with row[k][$lte]=v which can be express like row[k] == v