mongodb

package
v0.0.0-...-9ae062e Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterBuilder

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

func NewFilter

func NewFilter() *FilterBuilder

func (*FilterBuilder) And

func (f *FilterBuilder) And() *FilterBuilder

func (*FilterBuilder) ArrayAll

func (f *FilterBuilder) ArrayAll(key string, val interface{}) *FilterBuilder

func (*FilterBuilder) ArrayIn

func (f *FilterBuilder) ArrayIn(key string, val interface{}) *FilterBuilder

func (*FilterBuilder) ArrayIndex

func (f *FilterBuilder) ArrayIndex(key string, index int, val interface{}) *FilterBuilder

func (*FilterBuilder) ArrayNotIn

func (f *FilterBuilder) ArrayNotIn(key string, val interface{}) *FilterBuilder

func (*FilterBuilder) ArraySize

func (f *FilterBuilder) ArraySize(key string, num int) *FilterBuilder

func (*FilterBuilder) Equal

func (f *FilterBuilder) Equal(key string, val interface{}) *FilterBuilder

func (*FilterBuilder) Exists

func (f *FilterBuilder) Exists(key string) *FilterBuilder

func (*FilterBuilder) Greater

func (f *FilterBuilder) Greater(key string, val interface{}) *FilterBuilder

func (*FilterBuilder) GreaterEqual

func (f *FilterBuilder) GreaterEqual(key string, val interface{}) *FilterBuilder

func (*FilterBuilder) GreaterThan

func (f *FilterBuilder) GreaterThan(key string, val interface{}) *FilterBuilder

func (*FilterBuilder) LessEqual

func (f *FilterBuilder) LessEqual(key string, val interface{}) *FilterBuilder

func (*FilterBuilder) LessThan

func (f *FilterBuilder) LessThan(key string, val interface{}) *FilterBuilder

func (*FilterBuilder) NotEqual

func (f *FilterBuilder) NotEqual(key string, val interface{}) *FilterBuilder

func (*FilterBuilder) NotExists

func (f *FilterBuilder) NotExists(key string) *FilterBuilder

func (*FilterBuilder) Or

func (f *FilterBuilder) Or() *FilterBuilder

func (*FilterBuilder) Regex

func (f *FilterBuilder) Regex(key string, val string) *FilterBuilder

func (*FilterBuilder) Serialize

func (f *FilterBuilder) Serialize() map[string]interface{}

type GroupBuilder

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

func NewGroupBy

func NewGroupBy() *GroupBuilder

func (*GroupBuilder) AddToSet

func (g *GroupBuilder) AddToSet(key interface{}, by interface{}, retfield string) *GroupBuilder

func (*GroupBuilder) Avg

func (g *GroupBuilder) Avg(key interface{}, by interface{}, retfield string) *GroupBuilder

func (*GroupBuilder) Count

func (g *GroupBuilder) Count(by interface{}, retfield string) *GroupBuilder

func (*GroupBuilder) First

func (g *GroupBuilder) First(key interface{}, by interface{}, retfield string) *GroupBuilder

func (*GroupBuilder) Last

func (g *GroupBuilder) Last(key interface{}, by interface{}, retfield string) *GroupBuilder

func (*GroupBuilder) Max

func (g *GroupBuilder) Max(key interface{}, by interface{}, retfield string) *GroupBuilder

func (*GroupBuilder) Min

func (g *GroupBuilder) Min(key interface{}, by interface{}, retfield string) *GroupBuilder

func (*GroupBuilder) Push

func (g *GroupBuilder) Push(key interface{}, by interface{}, retfield string) *GroupBuilder

func (*GroupBuilder) Serialize

func (g *GroupBuilder) Serialize() []interface{}

func (*GroupBuilder) Sum

func (g *GroupBuilder) Sum(key interface{}, by interface{}, retfield string) *GroupBuilder

type OptionBuilder

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

func NewOption

func NewOption() *OptionBuilder

func (*OptionBuilder) Inc

func (o *OptionBuilder) Inc(key string, num int) *OptionBuilder

func (*OptionBuilder) Pull

func (o *OptionBuilder) Pull(key string, val interface{}) *OptionBuilder

func (*OptionBuilder) Push

func (o *OptionBuilder) Push(key string, val interface{}) *OptionBuilder

func (*OptionBuilder) Serialize

func (o *OptionBuilder) Serialize() map[string]map[string]interface{}

func (*OptionBuilder) Set

func (o *OptionBuilder) Set(key string, val interface{}) *OptionBuilder

Jump to

Keyboard shortcuts

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