Documentation ¶
Index ¶
- Constants
- func AddToSet(key string, value any) bson.D
- func CurrentDate(key string, value any) bson.D
- func Each[T any](values ...T) bson.D
- func Inc(key string, value any) bson.D
- func Max(key string, value any) bson.D
- func Min(key string, value any) bson.D
- func Mul(key string, value any) bson.D
- func Pop(key string, value any) bson.D
- func Position(value any) bson.D
- func Pull(key string, value any) bson.D
- func PullAll[T any](key string, values ...T) bson.D
- func Push(key string, value any) bson.D
- func Rename(key string, value any) bson.D
- func Set(key string, value any) bson.D
- func SetOnInsert(key string, value any) bson.D
- func Slice(num int) bson.D
- func Sort(value any) bson.D
- func Unset(keys ...string) bson.D
- type Builder
- func (b *Builder) AddToSet(key string, value any) *Builder
- func (b *Builder) Build() bson.D
- func (b *Builder) CurrentDate(key string, value any) *Builder
- func (b *Builder) Each(values ...any) *Builder
- func (b *Builder) EachFloat32(values ...float32) *Builder
- func (b *Builder) EachFloat64(values ...float64) *Builder
- func (b *Builder) EachInt(values ...int) *Builder
- func (b *Builder) EachInt16(values ...int16) *Builder
- func (b *Builder) EachInt32(values ...int32) *Builder
- func (b *Builder) EachInt64(values ...int64) *Builder
- func (b *Builder) EachInt8(values ...int8) *Builder
- func (b *Builder) EachString(values ...string) *Builder
- func (b *Builder) EachUint(values ...uint) *Builder
- func (b *Builder) EachUint16(values ...uint16) *Builder
- func (b *Builder) EachUint32(values ...uint32) *Builder
- func (b *Builder) EachUint64(values ...uint64) *Builder
- func (b *Builder) EachUint8(values ...uint8) *Builder
- func (b *Builder) Inc(key string, value any) *Builder
- func (b *Builder) KeyValue(key string, value any) *Builder
- func (b *Builder) Max(key string, value any) *Builder
- func (b *Builder) Min(key string, value any) *Builder
- func (b *Builder) Mul(key string, value any) *Builder
- func (b *Builder) Pop(key string, value any) *Builder
- func (b *Builder) Position(value int) *Builder
- func (b *Builder) Pull(key string, value any) *Builder
- func (b *Builder) PullAll(key string, values ...any) *Builder
- func (b *Builder) PullAllFloat32(key string, values ...float32) *Builder
- func (b *Builder) PullAllFloat64(key string, values ...float64) *Builder
- func (b *Builder) PullAllInt(key string, values ...int) *Builder
- func (b *Builder) PullAllInt16(key string, values ...int16) *Builder
- func (b *Builder) PullAllInt32(key string, values ...int32) *Builder
- func (b *Builder) PullAllInt64(key string, values ...int64) *Builder
- func (b *Builder) PullAllInt8(key string, values ...int8) *Builder
- func (b *Builder) PullAllString(key string, values ...string) *Builder
- func (b *Builder) PullAllUint(key string, values ...uint) *Builder
- func (b *Builder) PullAllUint16(key string, values ...uint16) *Builder
- func (b *Builder) PullAllUint32(key string, values ...uint32) *Builder
- func (b *Builder) PullAllUint64(key string, values ...uint64) *Builder
- func (b *Builder) PullAllUint8(key string, values ...uint8) *Builder
- func (b *Builder) Push(key string, value any) *Builder
- func (b *Builder) Rename(key string, value any) *Builder
- func (b *Builder) Set(key string, value any) *Builder
- func (b *Builder) SetOnInsert(key string, value any) *Builder
- func (b *Builder) Slice(num int) *Builder
- func (b *Builder) Sort(value any) *Builder
- func (b *Builder) Unset(keys ...string) *Builder
Constants ¶
View Source
const ( SetOp = "$set" UnsetOp = "$unset" SetOnInsertOp = "$setOnInsert" CurrentDateOp = "$currentDate" IncOp = "$inc" MinOp = "$min" MaxOp = "$max" MulOp = "$mul" RenameOp = "$rename" AddToSetOp = "$addToSet" PopOp = "$pop" PullOp = "$pull" PushOp = "$push" PullAllOp = "$pullAll" EachOp = "$each" PositionOp = "$position" SliceForUpdateOp = "$slice" SortOp = "$sort" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶ added in v1.0.2
func NewBuilder() *Builder
func (*Builder) CurrentDate ¶
func (*Builder) EachFloat32 ¶
func (*Builder) EachFloat64 ¶
func (*Builder) EachString ¶
func (*Builder) EachUint16 ¶
func (*Builder) EachUint32 ¶
func (*Builder) EachUint64 ¶
func (*Builder) KeyValue ¶ added in v1.0.0
KeyValue appends given key-value pair to the builder's data slice.
func (*Builder) PullAllFloat32 ¶
func (*Builder) PullAllFloat64 ¶
func (*Builder) PullAllInt ¶
func (*Builder) PullAllInt16 ¶
func (*Builder) PullAllInt32 ¶
func (*Builder) PullAllInt64 ¶
func (*Builder) PullAllInt8 ¶
func (*Builder) PullAllString ¶
func (*Builder) PullAllUint ¶
func (*Builder) PullAllUint16 ¶
func (*Builder) PullAllUint32 ¶
func (*Builder) PullAllUint64 ¶
func (*Builder) PullAllUint8 ¶
func (*Builder) SetOnInsert ¶
Click to show internal directories.
Click to hide internal directories.