moper

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type D

type D primitive.D

func Query

func Query() D

func (D) Equal

func (d D) Equal(fieldName string, value interface{}) D

func (D) EqualGreater

func (d D) EqualGreater(fieldName string, value interface{}) D

GREATER OR EQUAL

func (D) EqualGreaterTime

func (d D) EqualGreaterTime(fieldName string, value time.Time) D

func (D) EqualLess

func (d D) EqualLess(fieldName string, value interface{}) D

LESS OR EQUAL

func (D) EqualLessTime

func (d D) EqualLessTime(fieldName string, value time.Time) D

func (D) ExistOrDefault

func (d D) ExistOrDefault(fieldName string, exist bool, value interface{}) D

func (D) Exists

func (d D) Exists(fieldName string, exist bool) D

func (D) Greater

func (d D) Greater(fieldName string, value interface{}) D

func (D) GreaterTime

func (d D) GreaterTime(fieldName string, value time.Time) D

func (D) Group

func (d D) Group(pairs ...P) D

func (D) GroupD

func (d D) GroupD(pair D) D

func (D) InArray

func (d D) InArray(fieldName string, value interface{}) D

func (D) InEll

func (d D) InEll(fieldName string, value ...interface{}) D

InEll - InEllipsis

func (D) Inc

func (d D) Inc(key string, value interface{}) D

INC

func (D) IncD

func (d D) IncD(pairs D) D

func (D) IncMany

func (d D) IncMany(pairs ...P) D

func (D) Less

func (d D) Less(fieldName string, value interface{}) D

func (D) LessTime

func (d D) LessTime(fieldName string, value time.Time) D

func (D) LookUp

func (d D) LookUp() LU

func (D) MarshalBSON

func (d D) MarshalBSON() ([]byte, error)

func (D) Match

func (d D) Match(pairs ...P) D

func (D) MatchD

func (d D) MatchD(pair D) D

func (D) NotEqual

func (d D) NotEqual(fieldName string, value interface{}) D

EQUAL

func (D) NotInArray

func (d D) NotInArray(fieldName string, value interface{}) D

func (D) NotInEll

func (d D) NotInEll(fieldName string, value ...interface{}) D

NotInEll is NotInEllipsis

func (D) Or

func (d D) Or(filters ...D) D

func (D) Push

func (d D) Push(key string, value interface{}) D

PUSH

func (D) PushD

func (d D) PushD(pairs D) D

PUSH

func (D) PushMany

func (d D) PushMany(pairs ...P) D

PUSH

func (D) Set

func (d D) Set(key string, value interface{}) D

SET

func (D) SetD

func (d D) SetD(pairs D) D

func (D) SetMany

func (d D) SetMany(pairs ...P) D

func (D) Sum

func (d D) Sum(fieldName string) D

func (D) Unset

func (d D) Unset(keys ...string) D

UNSET

type LU

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

func (LU) As

func (l LU) As(field string) LU

func (LU) Custom

func (l LU) Custom(p P) LU

func (LU) D

func (l LU) D() D

func (LU) ForeignField

func (l LU) ForeignField(field string) LU

Specifies the foreign documents' foreignField to perform an equality match with the local documents' localField. If a foreign document does not contain a foreignField value, the $lookup uses a null value for the match.

func (LU) From

func (l LU) From(collName string) LU

Specifies the foreign collection in the same database to join to the local collection. The foreign collection cannot be sharded

func (LU) LocalField

func (l LU) LocalField(field string) LU

Specifies the local documents' localField to perform an equality match with the foreign documents' foreignField.

type P

type P struct {
	K string
	V interface{}
}

P is pair

func Pr

func Pr(k string, v interface{}) P

Jump to

Keyboard shortcuts

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