bsonx

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func A

func A(values ...any) bson.A

func D

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

func E

func E(key string, value any) bson.E

func Id

func Id(value any) bson.M

func M

func M(key string, value any) bson.M

func MapToBsonM added in v1.3.0

func MapToBsonM(data map[string]any) bson.M

func ToBsonM added in v1.3.0

func ToBsonM(data any) bson.M

Types

type DBuilder added in v0.5.0

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

DBuilder is a builder for bson.D

func NewD added in v0.5.0

func NewD() *DBuilder

func (*DBuilder) Add added in v0.5.0

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

func (*DBuilder) Build added in v0.5.0

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

Jump to

Keyboard shortcuts

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