| Name | Summary |
|---|---|
|
Add a shard to a database.Example: .
|
|
|
Authentication: creates a
user for the given db.
|
|
|
Perform on the "admin" database. *
|
|
|
Authenticate a user for the given database.The password must match the users password.
|
|
|
Authenticate low-level, needed by the driver during reconnect (and reauthenticate).
|
|
|
Return information about the server.
|
|
|
Predicate for connection alive. Peforms an admin "ping" command.
We insist upon a single reply, an...
|
|
|
Return collection statistics.Example:
|
|
|
Perform on the "config" database. *
|
|
|
Cap a collection. Example:
|
|
|
Count the number of matching elements. returns the number of elements
matching or the whole collect...
|
|
|
Create a collection.
|
|
|
Run a but pass the result through ,
using the type that this function is cast to at the point of ca...
|
|
|
MongoDB aggregation.Example:
|
|
|
Drop a collection from a database
|
|
|
Drop a database.
|
|
|
Drop an index from a collection
|
|
|
Enable sharding on the given database.
|
|
|
Evaluate Javascript code.Example:
|
|
|
Atomic operation, perform query and update document if found.
This is a generic version, you can onl...
|
|
|
Same as but convert to OPA type *
|
|
|
Remove-specific version of the command *
|
|
|
Same as but convert to OPA type *
|
|
|
Update-specific version of the command *
|
|
|
Same as but convert to OPA type *
|
|
|
Query the "config.locks" database, gives information about the shard balancer.
|
|
|
Query the "config.chunks" database, gives a information about shard distribution.
|
|
|
Query the "config.databases" database, gives a list of shard information about databases.
|
|
|
Query the "config.shards" database, gives a list of shards.
|
|
|
Find a non-draining shard in a list of shards.
You get the list of shards from the "config.shards" c...
|
|
|
Force a db error.
|
|
|
Return the last error from database.
|
|
|
Return the last error from database, with full options.Example:
|
|
|
Return the current shard version for this collection.
|
|
|
A more advanced aggregation function.Example:
|
|
|
Runs an "isdbgrid" command. Can be used to tell if we are running mongos or mongod.
|
|
|
command result as a .
|
|
|
Return the document as an OPA type.
|
|
|
Boolean predicate for connection to a mongos (uses ).
|
|
|
Predicate for master status. Runs an "ismaster" command.
|
|
|
List valid commands for database.
|
|
|
List all databases.
|
|
|
Return a list of shards.
|
|
|
Abbreviation for mapReduceOpts *
|
|
|
A bare no-frills mapReduce function. We ask for all of the options, including
the complicated "out"...
|
|
|
Convert the return value from mapReduce into an OPA type.
Probably not very useful since mapReduce o...
|
|
|
Default options for , all .
|
|
|
Full mapReduce but handling options with the type.
|
|
|
Same as but returns OPA type. *
|
|
|
Simplest possible mapReduce, only define , and .
|
|
|
Same as but returns OPA type. *
|
|
|
Move a chunk from the given collection for which the select document would
select a document from an...
|
|
|
Move the primary for the given db name to the named shard.
Example:
|
|
|
Update the balancer settings, =stopped
|
|
|
Presplit, we just define the split point (does a split(middle)).
Example:
|
|
|
Complicated and possibly dangerous routine.
We remove a shard and detect whether it has completed or...
|
|
|
Basic and practically useless remove shard command.
Unless the shard happens to have no databases in...
|
|
|
Rename a collection
|
|
|
Repair the database (slow, write-locked).
|
|
|
Reset database error status.
|
|
|
Run a "$cmd" command.Normally you will get as a reply but sometimes there
are other elements in the...
|
|
|
Statistics for server.
|
|
|
Low-level, set "config.settings" balancer value. Valid objects are "stopped" and "start/stop".
|
|
|
Set balancer window (eg. start="09:00" stop="21:00")
|
|
|
Set chunksize in MB.
|
|
|
Enable sharding on a collection, giving the optional sharding key.
The bool is the unique flag.Examp...
|
|
|
Perform a simple integer command, eg.
|
|
|
Same as simple integer command but with options, eg.
|
|
|
Perform a simple integer command, eg.
|
|
|
Perform a simple integer command, eg.
|
|
|
Actually split an existing chunk (does a split(find)).
Example:
|
Comments