Alias for {@link MongoPortable#collection}
Adds a custom stores for remote and local persistence
The custom store
this - The current Instance
Creates a collection on a server pre-allocating space, need to create f.ex capped collections.
the collection name we wish to access.
Get the list of all collection names for the specified db, by calling MongoPortable#collections with [options.namesOnly = true]
{@link MongoPortable#collections}
Get the list of all collection for the specified db
Returns a cursor to all the collection information.
Creates an index on the collection.
Name of the collection to create the index on.
FieldOrSpec that defines the index.
Dereference a dbref, against a db
db reference object we wish to resolve.
Drop a collection from the database, removing it permanently. New accesses will create a new collection.
The name of the collection we wish to drop.
Promise with "true" if dropped successfully
Drop the whole database.
Promise with "true" if dropped successfully
Drop an index on a collection.
The name of the collection where the command will drop an index.
Name of the index to drop.
Ensures that an index exists, if it does not it creates it
Name of the collection to create the index on.
FieldOrSpec that defines the index.
Alias for {@link MongoPortable#collections}
Retrieves this collections index info.
The name of the collection.
Reindex all indexes on the collection Warning: "reIndex" is a blocking operation (indexes are rebuilt in the foreground) and will be slow for large collections.
The name of the collection to reindex
Rename a collection.
The name of the current collection we wish to rename.
The new name of the collection.
Promise with the renamed collection
Middleware functions
Name of the middleware:
Retrieves the instance of that DDBB name
The DDBB name
Generated using TypeDoc
MongoPortable
MongoPortable
0.0.1
Portable database with persistence and MongoDB-like API
Name of the database.