Documentation
¶
Index ¶
- func A(values ...any) bson.A
- func D(key string, value any) bson.D
- func E(key string, value any) bson.E
- func Id(value any) bson.M
- func M(key string, value any) bson.M
- func MapToBsonM(data map[string]any) bson.M
- func StringSortToBsonD(sorts ...string) bson.D
- func ToBsonM(data any) bson.M
- type DBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringSortToBsonD ¶ added in v2.1.0
StringSortToBsonD transform string sort to bson D "-created_at" => bson.D{{"created_at", -1}} []string{"age", "-created_at"} => bson.D{{"age", 1}, {"created_at", -1}}
Types ¶
Click to show internal directories.
Click to hide internal directories.