query

package
v0.0.0-...-5be7bc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToSet

func AddToSet(expressions ...bson.E) bson.D

func All

func All(field string, value bool) bson.D

func And

func And(expressions ...bson.D) bson.D

func Compare

func Compare(expressions ...bson.D) bson.D

func CurrentDate

func CurrentDate(expressions ...bson.E) bson.D

func ElemMatch

func ElemMatch(field string, value any) bson.D

func Eq

func Eq(field string, value any) bson.D

func Exists

func Exists(field string, value bool) bson.D

func Gt

func Gt(field string, value any) bson.D

func Gte

func Gte(field string, value any) bson.D

func In

func In(field string, value bson.A) bson.D

func Inc

func Inc(expressions ...bson.E) bson.D

func Lt

func Lt(field string, value any) bson.D

func Lte

func Lte(field string, value any) bson.D

func Max

func Max(expressions ...bson.E) bson.D

func Min

func Min(expressions ...bson.E) bson.D

func Mul

func Mul(expressions ...bson.E) bson.D

func Ne

func Ne(field string, value any) bson.D

func Nin

func Nin(field string, value bson.A) bson.D

func Nor

func Nor(expressions ...bson.D) bson.D

func Not

func Not(field string, expression bson.D) bson.D

func Or

func Or(expressions ...bson.D) bson.D

func Pop

func Pop(expressions ...bson.E) bson.D

func Pull

func Pull(expressions ...bson.E) bson.D

func PullAll

func PullAll(expressions ...bson.E) bson.D

func Push

func Push(expressions ...bson.E) bson.D

func Rename

func Rename(expressions ...bson.E) bson.D

func Set

func Set(expressions any) bson.D

func SetOnInsert

func SetOnInsert(expressions ...bson.E) bson.D

func Size

func Size(field string, value bool) bson.D

func Type

func Type(field string, value bsontype.Type) bson.D

func Unset

func Unset(expressions ...bson.E) bson.D

func Update

func Update(expressions ...bson.D) bson.D

func Where

func Where(value any) bson.D

Types

type Expression

type Expression struct {
	// contains filtered or unexported fields
}

func NewPrimaryFieldExpression

func NewPrimaryFieldExpression(operator string, field string, value any) *Expression

func NewPrimaryOperatorExpression

func NewPrimaryOperatorExpression(operator string, value any) *Expression

func (*Expression) GetField

func (exp *Expression) GetField() *string

func (*Expression) GetOperator

func (exp *Expression) GetOperator() *string

func (*Expression) GetValue

func (exp *Expression) GetValue() *any

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL