Documentation ¶
Index ¶
- func CombineOperators(operators []Operator) interface{}
- func ConvertObjectIdToStringValue(id interface{}) (string, error)
- func IsNoDocumentsError(err error) bool
- func NewBetweenFilter(least, greatest interface{}) interface{}
- func NewBooleanInFilter(value bool) interface{}
- func NewIdFilter(id interface{}) interface{}
- func NewInFilter(items bsonx.Arr) interface{}
- func NewIntInFilter(items []int) interface{}
- func NewObjectIdFromString(id string) (primitive.ObjectID, error)
- func NewRegexFilter(pattern string, options string) interface{}
- func NewStringInFilter(items []string) interface{}
- func NewStringObjectId() string
- func NewTimeRangeBetweenFilter(tr *timez.TimeRange) interface{}
- type MongoClient
- type MongoCollection
- type MongoDB
- type Operator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineOperators ¶ added in v1.0.8
func CombineOperators(operators []Operator) interface{}
func ConvertObjectIdToStringValue ¶ added in v1.0.2
func IsNoDocumentsError ¶ added in v1.0.5
func NewBetweenFilter ¶ added in v1.0.5
func NewBetweenFilter(least, greatest interface{}) interface{}
func NewBooleanInFilter ¶ added in v1.0.5
func NewBooleanInFilter(value bool) interface{}
func NewIdFilter ¶ added in v1.0.5
func NewIdFilter(id interface{}) interface{}
func NewInFilter ¶ added in v1.0.5
func NewIntInFilter ¶ added in v1.0.5
func NewIntInFilter(items []int) interface{}
func NewRegexFilter ¶ added in v1.0.5
func NewStringInFilter ¶ added in v1.0.5
func NewStringInFilter(items []string) interface{}
func NewStringObjectId ¶ added in v1.0.5
func NewStringObjectId() string
func NewTimeRangeBetweenFilter ¶ added in v1.0.5
Types ¶
type MongoClient ¶
type MongoCollection ¶ added in v1.0.5
type MongoCollection struct {
*mongo.Collection
}
type MongoDB ¶
type MongoDB interface {
Collection(name string) (*MongoCollection, error)
}
type Operator ¶ added in v1.0.8
type Operator map[string]interface{}
func NewSetOperator ¶ added in v1.0.5
func NewSetOperator(set interface{}) Operator
func NewUnsetOperator ¶ added in v1.0.7
func NewUnsetOperator(unset interface{}) Operator
Click to show internal directories.
Click to hide internal directories.