Converts this collection to a capped one.
Converts this collection to a capped one.
The size of this capped collection, in bytes.
The maximum number of documents this capped collection can contain.
Creates this collection.
Creates this collection.
The returned future will be completed with an error if this collection already exists.
States if should automatically add an index on the _id field. By default, regular collections will have an indexed _id field, in contrast to capped collections.
Creates this collection as a capped one.
Creates this collection as a capped one.
The returned future will be completed with an error if this collection already exists.
the byte size of the collections.
the maximum number of documents.
States if should automatically add an index on the _id field. By default, capped collections will NOT have an indexed _id field, in contrast to regular collections.
Drops this collection.
Drops this collection.
If the collection existed and is successfully dropped, the returned future will be completed with true.
If failIfNotFound
is false and the collection doesn't exist,
the returned future will be completed with false.
Otherwise in case, the future will be completed with the encountered error.
Returns an index manager for this collection.
Renames this collection.
Renames this collection.
The new name of this collection.
If a collection of name to
already exists, then drops that collection before renaming this one.
Returns various information about this collection.
Returns various information about this collection.
A scale factor (for example, to get all the sizes in kilobytes).
Returns various information about this collection.
(collectionMetaCommands: StringAdd).self
(collectionMetaCommands: StringFormat).self
Drops this collection.
Drops this collection.
The returned future will be completed with an error if this collection does not exist.
(Since version 0.12.0) Use drop(Boolean)
If this collection is capped, removes all the documents it contains.
If this collection is capped, removes all the documents it contains.
Deprecated because it became an internal command, unavailable by default.
(Since version 0.9) Deprecated because emptyCapped became an internal command, unavailable by default.
(collectionMetaCommands: ArrowAssoc[CollectionMetaCommands]).x
(Since version 2.10.0) Use leftOfArrow
instead
(collectionMetaCommands: Ensuring[CollectionMetaCommands]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
A mixin that provides commands about this Collection itself.