Documentation
¶
Index ¶
- type BSONType
- type Builder
- func All(field string, values ...any) *Builder
- func And(filters ...*Builder) *Builder
- func ElemMatch(field string, filter *Builder) *Builder
- func Eq(field string, value any) *Builder
- func Exists(field string, exists bool) *Builder
- func Gt(field string, value any) *Builder
- func Gte(field string, value any) *Builder
- func In(field string, values ...any) *Builder
- func Lt(field string, value any) *Builder
- func Lte(field string, value any) *Builder
- func Ne(field string, value any) *Builder
- func New() *Builder
- func Nin(field string, values ...any) *Builder
- func Or(filters ...*Builder) *Builder
- func Regex(field string, pattern string, options ...string) *Builder
- func Size(field string, size int) *Builder
- func Text(query string) *Builder
- func Type(field string, bsonType BSONType) *Builder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BSONType ¶
type BSONType int
BSONType represents BSON type constants for type checking
const ( BSONTypeDouble BSONType = 1 BSONTypeString BSONType = 2 BSONTypeObject BSONType = 3 BSONTypeArray BSONType = 4 BSONTypeBinary BSONType = 5 BSONTypeObjectID BSONType = 7 BSONTypeBoolean BSONType = 8 BSONTypeDateTime BSONType = 9 BSONTypeNull BSONType = 10 BSONTypeRegex BSONType = 11 BSONTypeJavaScript BSONType = 13 BSONTypeInt32 BSONType = 16 BSONTypeTimestamp BSONType = 17 BSONTypeInt64 BSONType = 18 BSONTypeDecimal128 BSONType = 19 )
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder represents a fluent filter builder for MongoDB queries
Click to show internal directories.
Click to hide internal directories.