builder

package
v0.0.0-...-418145e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatePipelineBuilder

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

func NewAggregatePipelineBuilder

func NewAggregatePipelineBuilder() *AggregatePipelineBuilder

func (*AggregatePipelineBuilder) BuildAggregatePipeline

func (b *AggregatePipelineBuilder) BuildAggregatePipeline() interface{}

func (*AggregatePipelineBuilder) MatchWith

func (*AggregatePipelineBuilder) SetGroupId

func (*AggregatePipelineBuilder) WithGroupField

func (b *AggregatePipelineBuilder) WithGroupField(fieldName string, value bson.M) *AggregatePipelineBuilder

append group field

func (*AggregatePipelineBuilder) WithSortField

func (b *AggregatePipelineBuilder) WithSortField(fieldName string, isSortAsc bool, metaDataKeyword string) *AggregatePipelineBuilder

append sort field

type BsonBuilder

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

func NewBsonBuilder

func NewBsonBuilder() *BsonBuilder

func (*BsonBuilder) NewOrUpdateSet

func (b *BsonBuilder) NewOrUpdateSet(v interface{}) *BsonBuilder

增加$set类型的值

func (*BsonBuilder) ToValue

func (b *BsonBuilder) ToValue() bson.M

type Op

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

func Op_AddToSet

func Op_AddToSet() *Op

func Op_And

func Op_And() *Op

func Op_ElemMatch

func Op_ElemMatch() *Op

func Op_Eq

func Op_Eq() *Op

func Op_Exists

func Op_Exists() *Op

func Op_Gt

func Op_Gt() *Op

func Op_Gte

func Op_Gte() *Op

func Op_In

func Op_In() *Op

func Op_Lt

func Op_Lt() *Op

func Op_Lte

func Op_Lte() *Op

func Op_Ne

func Op_Ne() *Op

func Op_Nin

func Op_Nin() *Op

func Op_Nor

func Op_Nor() *Op

func Op_Not

func Op_Not() *Op

func Op_Or

func Op_Or() *Op

func Op_Pop

func Op_Pop() *Op

func Op_Pull

func Op_Pull() *Op

func Op_PullAll

func Op_PullAll() *Op

func Op_Push

func Op_Push() *Op

func Op_Set

func Op_Set() *Op

func Op_Type

func Op_Type() *Op

func (*Op) String

func (op *Op) String() string

Jump to

Keyboard shortcuts

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