update

package
v0.18.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToSet added in v0.3.0

func AddToSet(key string, value any) bson.D

func CurrentDate added in v0.3.0

func CurrentDate(key string, value any) bson.D

func Each added in v0.3.0

func Each[T any](values ...T) bson.D

func Inc added in v0.3.0

func Inc(key string, value any) bson.D

func Max added in v0.3.0

func Max(key string, value any) bson.D

func Min added in v0.3.0

func Min(key string, value any) bson.D

func Mul added in v0.3.0

func Mul(key string, value any) bson.D

func Pop added in v0.3.0

func Pop(key string, value any) bson.D

func Position added in v0.3.0

func Position(value any) bson.D

func Pull added in v0.3.0

func Pull(key string, value any) bson.D

func PullAll added in v0.3.0

func PullAll[T any](key string, values ...T) bson.D

func Push added in v0.3.0

func Push(key string, value any) bson.D

func Rename added in v0.3.0

func Rename(key string, value any) bson.D

func Set added in v0.3.0

func Set(key string, value any) bson.D

func SetOnInsert added in v0.3.0

func SetOnInsert(key string, value any) bson.D

func Slice added in v0.3.0

func Slice(num int) bson.D

func Sort added in v0.3.0

func Sort(value any) bson.D

func Unset added in v0.3.0

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

Types

type Builder

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

func BsonBuilder

func BsonBuilder() *Builder

func (*Builder) Add

func (b *Builder) Add(key string, value any) *Builder

func (*Builder) AddToSet

func (b *Builder) AddToSet(key string, value any) *Builder

func (*Builder) Build

func (b *Builder) Build() bson.D

func (*Builder) CurrentDate

func (b *Builder) CurrentDate(key string, value any) *Builder

func (*Builder) Each

func (b *Builder) Each(values ...any) *Builder

func (*Builder) EachFloat32

func (b *Builder) EachFloat32(values ...float32) *Builder

func (*Builder) EachFloat64

func (b *Builder) EachFloat64(values ...float64) *Builder

func (*Builder) EachInt

func (b *Builder) EachInt(values ...int) *Builder

func (*Builder) EachInt16

func (b *Builder) EachInt16(values ...int16) *Builder

func (*Builder) EachInt32

func (b *Builder) EachInt32(values ...int32) *Builder

func (*Builder) EachInt64

func (b *Builder) EachInt64(values ...int64) *Builder

func (*Builder) EachInt8

func (b *Builder) EachInt8(values ...int8) *Builder

func (*Builder) EachString

func (b *Builder) EachString(values ...string) *Builder

func (*Builder) EachUint

func (b *Builder) EachUint(values ...uint) *Builder

func (*Builder) EachUint16

func (b *Builder) EachUint16(values ...uint16) *Builder

func (*Builder) EachUint32

func (b *Builder) EachUint32(values ...uint32) *Builder

func (*Builder) EachUint64

func (b *Builder) EachUint64(values ...uint64) *Builder

func (*Builder) EachUint8

func (b *Builder) EachUint8(values ...uint8) *Builder

func (*Builder) Inc

func (b *Builder) Inc(key string, value any) *Builder

func (*Builder) Max

func (b *Builder) Max(key string, value any) *Builder

func (*Builder) Min

func (b *Builder) Min(key string, value any) *Builder

func (*Builder) Mul

func (b *Builder) Mul(key string, value any) *Builder

func (*Builder) Pop

func (b *Builder) Pop(key string, value any) *Builder

func (*Builder) Position

func (b *Builder) Position(value int) *Builder

func (*Builder) Pull

func (b *Builder) Pull(key string, value any) *Builder

func (*Builder) PullAll

func (b *Builder) PullAll(key string, values ...any) *Builder

func (*Builder) PullAllFloat32

func (b *Builder) PullAllFloat32(key string, values ...float32) *Builder

func (*Builder) PullAllFloat64

func (b *Builder) PullAllFloat64(key string, values ...float64) *Builder

func (*Builder) PullAllInt

func (b *Builder) PullAllInt(key string, values ...int) *Builder

func (*Builder) PullAllInt16

func (b *Builder) PullAllInt16(key string, values ...int16) *Builder

func (*Builder) PullAllInt32

func (b *Builder) PullAllInt32(key string, values ...int32) *Builder

func (*Builder) PullAllInt64

func (b *Builder) PullAllInt64(key string, values ...int64) *Builder

func (*Builder) PullAllInt8

func (b *Builder) PullAllInt8(key string, values ...int8) *Builder

func (*Builder) PullAllString

func (b *Builder) PullAllString(key string, values ...string) *Builder

func (*Builder) PullAllUint

func (b *Builder) PullAllUint(key string, values ...uint) *Builder

func (*Builder) PullAllUint16

func (b *Builder) PullAllUint16(key string, values ...uint16) *Builder

func (*Builder) PullAllUint32

func (b *Builder) PullAllUint32(key string, values ...uint32) *Builder

func (*Builder) PullAllUint64

func (b *Builder) PullAllUint64(key string, values ...uint64) *Builder

func (*Builder) PullAllUint8

func (b *Builder) PullAllUint8(key string, values ...uint8) *Builder

func (*Builder) Push

func (b *Builder) Push(key string, value any) *Builder

func (*Builder) Rename

func (b *Builder) Rename(key string, value any) *Builder

func (*Builder) Set

func (b *Builder) Set(key string, value any) *Builder

func (*Builder) SetOnInsert

func (b *Builder) SetOnInsert(key string, value any) *Builder

func (*Builder) Slice

func (b *Builder) Slice(num int) *Builder

func (*Builder) Sort

func (b *Builder) Sort(value any) *Builder

func (*Builder) Unset

func (b *Builder) Unset(keys ...string) *Builder

Jump to

Keyboard shortcuts

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