mongo

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ComparisonConversion = map[specification.Comparator]string{
	specification.ComparisonEq:  "$eq",
	specification.ComparisonGt:  "$gt",
	specification.ComparisonGte: "$gte",
	specification.ComparisonLt:  "$lt",
	specification.ComparisonLte: "$lte",
	specification.ComparisonNe:  "$ne",
}

Functions

This section is empty.

Types

type And

type And struct {
	Operands []Criteria
}

func (And) GetExpression

func (o And) GetExpression() bson.M

type Attr

type Attr struct {
	Name       string
	Value      any
	Comparison specification.Comparator
}

func (Attr) GetExpression

func (a Attr) GetExpression() bson.M

type Criteria

type Criteria interface {
	GetExpression() bson.M
}

type Not

type Not struct {
	Operand Criteria
}

func (Not) GetExpression

func (n Not) GetExpression() bson.M

type Or

type Or struct {
	Operands []Criteria
}

func (Or) GetExpression

func (o Or) GetExpression() bson.M

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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