Versions in this module Expand all Collapse all v1 v1.0.2 Jul 14, 2023 v1.0.1 Jul 14, 2023 v1.0.0 Jul 3, 2023 Changes in this version + var Day = newMongoTimeUnit("day", true) + var Hour = newMongoTimeUnit("hour", true) + var Millisecond = newMongoTimeUnit("millisecond", true) + var Minute = newMongoTimeUnit("minute", true) + var Month = newMongoTimeUnit("month", false) + var Quarter = newMongoTimeUnit("quarter", false) + var Second = newMongoTimeUnit("second", true) + var Week = newMongoTimeUnit("week", true) + var WhenMatcheds = [...]string + var WhenNotMatcheds = [...]string + var Year = newMongoTimeUnit("year", false) + func GetCollectionNameFullName(namespace string) string + func GetDatatabaseNameFromFullName(namespace string) string + type AggBucketOptions struct + func (b AggBucketOptions) DefaultBucket(name string) AggBucketOptions + func (b AggBucketOptions) GetDefaultBucket() string + func (b AggBucketOptions) GetOutPut() []bsonx.BsonField + func (b AggBucketOptions) Output(output ...bsonx.BsonField) AggBucketOptions + type BucketAutoOptions struct + func (b BucketAutoOptions) GetGranularity() string + func (b BucketAutoOptions) GetOutPut() []bsonx.BsonField + func (b BucketAutoOptions) Granularity(granularity BucketGranularity) BucketAutoOptions + func (b BucketAutoOptions) Output(output ...bsonx.BsonField) BucketAutoOptions + type BucketGranularity string + const E12 + const E192 + const E24 + const E48 + const E6 + const E96 + const Powersof2 + const R10 + const R20 + const R40 + const R5 + const R80 + const Series125 + func (g BucketGranularity) GetValue() string + type GraphLookupOptions struct + 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 struct + func (o MergeOptions) UniqueIdentifier() []string + func (o MergeOptions) Variables() []Variable[expression.AnyExpression] + func (o MergeOptions) WhenMatched() WhenMatched + func (o MergeOptions) WhenMatchedPipeline() []bool + func (o MergeOptions) WhenNotMatched() WhenNotMatched + type MongoNamespace struct + func NewMongoNamespace(fullName string) MongoNamespace + func NewMongoNamespaceWithDB(databaseName, collectionName string) MongoNamespace + func (m *MongoNamespace) CollectionName() string + func (m *MongoNamespace) DatabaseName() string + type MongoTimeUnit struct + func (u MongoTimeUnit) GetFixed() bool + func (u MongoTimeUnit) GetValue() string + type TextSearchOptions struct + func NewTextSearchOptions() 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 struct + func NewUnwindOptions(preserveNullAndEmptyArrays *bool, includeArrayIndex *string) UnwindOptions + func (u UnwindOptions) HasIncludeArrayIndex() bool + func (u UnwindOptions) HasPreserveNullAndEmptyArrays() bool + func (u UnwindOptions) IncludeArrayIndex() string + func (u UnwindOptions) PreserveNullAndEmptyArrays() bool + type Variable struct + func NewVariable(name string, value T) Variable[T] + func (v Variable[T]) GetName() string + func (v Variable[T]) GetValue() T + type WhenMatched uint8 + const WhenMatchedFail + const WhenMatchedInvalid + const WhenMatchedKeepExisting + const WhenMatchedMerge + const WhenMatchedPipeline + const WhenMatchedReplace + type WhenNotMatched uint8 + const WhenNotMatchedDiscard + const WhenNotMatchedFail + const WhenNotMatchedInsert + const WhenNotMatchedInvalid