Documentation ¶
Index ¶
- Variables
- func GetCollectionNameFullName(namespace string) string
- func GetDatatabaseNameFromFullName(namespace string) string
- type AggBucketOptions
- type BucketAutoOptions
- type BucketGranularity
- type GraphLookupOptions
- func (g GraphLookupOptions) DepthField(field string) GraphLookupOptions
- func (g GraphLookupOptions) GetDepthField() string
- func (g GraphLookupOptions) GetMaxDepth() int32
- func (g GraphLookupOptions) GetRestrictSearchWithMatch() bsonx.Bson
- func (g GraphLookupOptions) MaxDepth(max int32) GraphLookupOptions
- func (g GraphLookupOptions) RestrictSearchWithMatch(r bsonx.Bson) GraphLookupOptions
- type MergeOptions
- type MongoNamespace
- type MongoTimeUnit
- type TextSearchOptions
- func (t TextSearchOptions) CaseSensitive(caseSensitive bool) TextSearchOptions
- func (t TextSearchOptions) DiacriticSensitive(diacriticSensitive bool) TextSearchOptions
- func (t TextSearchOptions) GetCaseSensitive() bool
- func (t TextSearchOptions) GetDiacriticSensitive() bool
- func (t TextSearchOptions) GetLanguage() string
- func (t TextSearchOptions) HasCaseSensitive() bool
- func (t TextSearchOptions) HasDiacriticSensitive() bool
- func (t TextSearchOptions) HasLanguage() bool
- func (t TextSearchOptions) Language(language string) TextSearchOptions
- type UnwindOptions
- type Variable
- type WhenMatched
- type WhenNotMatched
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WhenMatcheds = [...]string{ "invalid", "merge", "replace", "keepExisting", "fail", "pipeline", } WhenNotMatcheds = [...]string{ "invalid", "insert", "discard", "fail", } )
View Source
var ( Year = newMongoTimeUnit("year", false) Quarter = newMongoTimeUnit("quarter", false) Month = newMongoTimeUnit("month", false) Week = newMongoTimeUnit("week", true) Day = newMongoTimeUnit("day", true) Hour = newMongoTimeUnit("hour", true) Minute = newMongoTimeUnit("minute", true) Second = newMongoTimeUnit("second", true) Millisecond = newMongoTimeUnit("millisecond", true) )
Functions ¶
Types ¶
type AggBucketOptions ¶
type AggBucketOptions struct {
// contains filtered or unexported fields
}
func (AggBucketOptions) DefaultBucket ¶
func (b AggBucketOptions) DefaultBucket(name string) AggBucketOptions
func (AggBucketOptions) GetDefaultBucket ¶
func (b AggBucketOptions) GetDefaultBucket() string
func (AggBucketOptions) GetOutPut ¶
func (b AggBucketOptions) GetOutPut() []bsonx.BsonField
func (AggBucketOptions) Output ¶
func (b AggBucketOptions) Output(output ...bsonx.BsonField) AggBucketOptions
type BucketAutoOptions ¶
type BucketAutoOptions struct {
// contains filtered or unexported fields
}
func (BucketAutoOptions) GetGranularity ¶
func (b BucketAutoOptions) GetGranularity() string
func (BucketAutoOptions) GetOutPut ¶
func (b BucketAutoOptions) GetOutPut() []bsonx.BsonField
func (BucketAutoOptions) Granularity ¶
func (b BucketAutoOptions) Granularity(granularity BucketGranularity) BucketAutoOptions
func (BucketAutoOptions) Output ¶
func (b BucketAutoOptions) Output(output ...bsonx.BsonField) BucketAutoOptions
type BucketGranularity ¶
type BucketGranularity string
const ( R5 BucketGranularity = "R5" R10 BucketGranularity = "R10" R20 BucketGranularity = "R20" R40 BucketGranularity = "R40" R80 BucketGranularity = "R80" Series125 BucketGranularity = "1-2-5" E6 BucketGranularity = "E6" E12 BucketGranularity = "E12" E24 BucketGranularity = "E24" E48 BucketGranularity = "E48" E96 BucketGranularity = "E96" E192 BucketGranularity = "E192" Powersof2 BucketGranularity = "POWERSOF2" )
func (BucketGranularity) GetValue ¶
func (g BucketGranularity) GetValue() string
type GraphLookupOptions ¶
type GraphLookupOptions struct {
// contains filtered or unexported fields
}
func (GraphLookupOptions) DepthField ¶
func (g GraphLookupOptions) DepthField(field string) GraphLookupOptions
func (GraphLookupOptions) GetDepthField ¶
func (g GraphLookupOptions) GetDepthField() string
func (GraphLookupOptions) GetMaxDepth ¶
func (g GraphLookupOptions) GetMaxDepth() int32
func (GraphLookupOptions) GetRestrictSearchWithMatch ¶
func (g GraphLookupOptions) GetRestrictSearchWithMatch() bsonx.Bson
func (GraphLookupOptions) MaxDepth ¶
func (g GraphLookupOptions) MaxDepth(max int32) GraphLookupOptions
func (GraphLookupOptions) RestrictSearchWithMatch ¶
func (g GraphLookupOptions) RestrictSearchWithMatch(r bsonx.Bson) GraphLookupOptions
type MergeOptions ¶
type MergeOptions struct {
// contains filtered or unexported fields
}
func (MergeOptions) UniqueIdentifier ¶
func (o MergeOptions) UniqueIdentifier() []string
func (MergeOptions) Variables ¶
func (o MergeOptions) Variables() []Variable[expression.AnyExpression]
func (MergeOptions) WhenMatched ¶
func (o MergeOptions) WhenMatched() WhenMatched
func (MergeOptions) WhenMatchedPipeline ¶
func (o MergeOptions) WhenMatchedPipeline() []bool
func (MergeOptions) WhenNotMatched ¶
func (o MergeOptions) WhenNotMatched() WhenNotMatched
type MongoNamespace ¶
type MongoNamespace struct {
// contains filtered or unexported fields
}
func NewMongoNamespace ¶
func NewMongoNamespace(fullName string) MongoNamespace
func NewMongoNamespaceWithDB ¶
func NewMongoNamespaceWithDB(databaseName, collectionName string) MongoNamespace
func (*MongoNamespace) CollectionName ¶
func (m *MongoNamespace) CollectionName() string
func (*MongoNamespace) DatabaseName ¶
func (m *MongoNamespace) DatabaseName() string
type MongoTimeUnit ¶
type MongoTimeUnit struct {
// contains filtered or unexported fields
}
func (MongoTimeUnit) GetFixed ¶
func (u MongoTimeUnit) GetFixed() bool
func (MongoTimeUnit) GetValue ¶
func (u MongoTimeUnit) GetValue() string
type TextSearchOptions ¶
type TextSearchOptions struct {
// contains filtered or unexported fields
}
func NewTextSearchOptions ¶
func NewTextSearchOptions() TextSearchOptions
func (TextSearchOptions) CaseSensitive ¶
func (t TextSearchOptions) CaseSensitive(caseSensitive bool) TextSearchOptions
func (TextSearchOptions) DiacriticSensitive ¶
func (t TextSearchOptions) DiacriticSensitive(diacriticSensitive bool) TextSearchOptions
func (TextSearchOptions) GetCaseSensitive ¶
func (t TextSearchOptions) GetCaseSensitive() bool
func (TextSearchOptions) GetDiacriticSensitive ¶
func (t TextSearchOptions) GetDiacriticSensitive() bool
func (TextSearchOptions) GetLanguage ¶
func (t TextSearchOptions) GetLanguage() string
func (TextSearchOptions) HasCaseSensitive ¶
func (t TextSearchOptions) HasCaseSensitive() bool
func (TextSearchOptions) HasDiacriticSensitive ¶
func (t TextSearchOptions) HasDiacriticSensitive() bool
func (TextSearchOptions) HasLanguage ¶
func (t TextSearchOptions) HasLanguage() bool
func (TextSearchOptions) Language ¶
func (t TextSearchOptions) Language(language string) TextSearchOptions
type UnwindOptions ¶
type UnwindOptions struct {
// contains filtered or unexported fields
}
func NewUnwindOptions ¶
func NewUnwindOptions(preserveNullAndEmptyArrays *bool, includeArrayIndex *string) UnwindOptions
func (UnwindOptions) HasIncludeArrayIndex ¶
func (u UnwindOptions) HasIncludeArrayIndex() bool
func (UnwindOptions) HasPreserveNullAndEmptyArrays ¶
func (u UnwindOptions) HasPreserveNullAndEmptyArrays() bool
func (UnwindOptions) IncludeArrayIndex ¶
func (u UnwindOptions) IncludeArrayIndex() string
func (UnwindOptions) PreserveNullAndEmptyArrays ¶
func (u UnwindOptions) PreserveNullAndEmptyArrays() bool
type Variable ¶
type Variable[T expression.AnyExpression] struct { // contains filtered or unexported fields }
func NewVariable ¶
func NewVariable[T expression.AnyExpression](name string, value T) Variable[T]
type WhenMatched ¶
type WhenMatched uint8
const ( WhenMatchedInvalid WhenMatched = iota WhenMatchedReplace WhenMatchedKeepExisting WhenMatchedMerge WhenMatchedFail WhenMatchedPipeline )
type WhenNotMatched ¶
type WhenNotMatched uint8
const ( WhenNotMatchedInvalid WhenNotMatched = iota WhenNotMatchedInsert WhenNotMatchedDiscard WhenNotMatchedFail )
Click to show internal directories.
Click to hide internal directories.