Documentation ¶
Index ¶
- type AggregatePipelineBuilder
- func (b *AggregatePipelineBuilder) BuildAggregatePipeline() interface{}
- func (b *AggregatePipelineBuilder) MatchWith(filter bson.M) *AggregatePipelineBuilder
- func (b *AggregatePipelineBuilder) SetGroupId(_id string) *AggregatePipelineBuilder
- func (b *AggregatePipelineBuilder) WithGroupField(fieldName string, value bson.M) *AggregatePipelineBuilder
- func (b *AggregatePipelineBuilder) WithSortField(fieldName string, isSortAsc bool, metaDataKeyword string) *AggregatePipelineBuilder
- type BsonBuilder
- type Op
- func Op_AddToSet() *Op
- func Op_And() *Op
- func Op_ElemMatch() *Op
- func Op_Eq() *Op
- func Op_Exists() *Op
- func Op_Gt() *Op
- func Op_Gte() *Op
- func Op_In() *Op
- func Op_Lt() *Op
- func Op_Lte() *Op
- func Op_Ne() *Op
- func Op_Nin() *Op
- func Op_Nor() *Op
- func Op_Not() *Op
- func Op_Or() *Op
- func Op_Pop() *Op
- func Op_Pull() *Op
- func Op_PullAll() *Op
- func Op_Push() *Op
- func Op_Set() *Op
- func Op_Type() *Op
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 (b *AggregatePipelineBuilder) MatchWith(filter bson.M) *AggregatePipelineBuilder
func (*AggregatePipelineBuilder) SetGroupId ¶
func (b *AggregatePipelineBuilder) SetGroupId(_id string) *AggregatePipelineBuilder
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_ElemMatch ¶
func Op_ElemMatch() *Op
func Op_PullAll ¶
func Op_PullAll() *Op
Click to show internal directories.
Click to hide internal directories.