DMGOCollection

Undocumented in source.

Constructors

this
this()
Undocumented in source.
this
this(string aName)
Undocumented in source.
this
this(MongoCollection aCollection)
Undocumented in source.

Members

Functions

aggregate
Bson aggregate(ARGS pipeline)

Calculates aggregate values for the data in a collection.

aggregate
MongoCursor!R aggregate(S[] pipeline, AggregateOptions options)
Undocumented in source. Be warned that the author may not have intended to support it.
count
ulong count(T query)

Counts the results of the specified query expression.

distinct
auto distinct(string key, Q query)

Returns an input range of all unique values for a certain field for records matching the given query.

drop
auto drop()
Undocumented in source. Be warned that the author may not have intended to support it.
dropIndex
O dropIndex(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
ensureIndex
O ensureIndex(const(std.typecons.Tuple!(string, int))[] field_orders, IndexFlags flags, core.time.Duration expire_time)

Creates or updates an index.

find
MongoCursor!R find(T query, U returnFieldSelector, QueryFlags flags, int num_skip, int num_docs_per_chunk)

Queries the collection for existing documents.

find
MongoCursor!(T, R, typeof(null)) find(T query)
Undocumented in source. Be warned that the author may not have intended to support it.
find
MongoCursor!(Bson, R, typeof(null)) find()
Undocumented in source. Be warned that the author may not have intended to support it.
findAndModify
Bson findAndModify(T query, U update, V returnFieldSelector)

Combines a modify and find operation to a single atomic operation.

findAndModify
Bson findAndModify(T query, U update)
Undocumented in source. Be warned that the author may not have intended to support it.
findAndModifyExt
Bson findAndModifyExt(T query, U update, V options)

Combines a modify and find operation to a single atomic operation with generic options support.

findOne
auto findOne(T query, U returnFieldSelector, QueryFlags flags)

Queries the collection for existing documents.

findOne
auto findOne(T query)
Undocumented in source. Be warned that the author may not have intended to support it.
insert
O insert(T document_or_documents, InsertFlags flags)

Inserts new documents into the collection.

remove
O remove(T selector, DeleteFlags flags)

Removes documents from the collection.

remove
O remove()
Undocumented in source. Be warned that the author may not have intended to support it.
update
O update(T selector, U update, UpdateFlags flags)

Performs an update operation on documents matching 'selector', updating them with 'update'.

Meta