Documentation ¶
Index ¶
- func AddToSet(expressions ...bson.E) bson.D
- func All(field string, value bool) bson.D
- func And(expressions ...bson.D) bson.D
- func Compare(expressions ...bson.D) bson.D
- func CurrentDate(expressions ...bson.E) bson.D
- func ElemMatch(field string, value any) bson.D
- func Eq(field string, value any) bson.D
- func Exists(field string, value bool) bson.D
- func Gt(field string, value any) bson.D
- func Gte(field string, value any) bson.D
- func In(field string, value bson.A) bson.D
- func Inc(expressions ...bson.E) bson.D
- func Lt(field string, value any) bson.D
- func Lte(field string, value any) bson.D
- func Max(expressions ...bson.E) bson.D
- func Min(expressions ...bson.E) bson.D
- func Mul(expressions ...bson.E) bson.D
- func Ne(field string, value any) bson.D
- func Nin(field string, value bson.A) bson.D
- func Nor(expressions ...bson.D) bson.D
- func Not(field string, expression bson.D) bson.D
- func Or(expressions ...bson.D) bson.D
- func Pop(expressions ...bson.E) bson.D
- func Pull(expressions ...bson.E) bson.D
- func PullAll(expressions ...bson.E) bson.D
- func Push(expressions ...bson.E) bson.D
- func Rename(expressions ...bson.E) bson.D
- func Set(expressions any) bson.D
- func SetOnInsert(expressions ...bson.E) bson.D
- func Size(field string, value bool) bson.D
- func Type(field string, value bsontype.Type) bson.D
- func Unset(expressions ...bson.E) bson.D
- func Update(expressions ...bson.D) bson.D
- func Where(value any) bson.D
- type Expression
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.