Note that some commands return a cursor instead of a single document.
In this case, use runListCommand instead of runCommandChecked or
runCommandUnchecked to be able to properly iterate over the results.
Usually commands respond with a double ok field in them, the Checked
version of this function checks that they equal to 1.0. The Unchecked
version of this function does not check that parameter.
With cursor functions on runListCommand the error checking is well
defined.
Generic means to run commands on the database.
See http://www.mongodb.org/display/DOCS/Commands for a list of possible values for command_and_options.
Note that some commands return a cursor instead of a single document. In this case, use runListCommand instead of runCommandChecked or runCommandUnchecked to be able to properly iterate over the results.
Usually commands respond with a double ok field in them, the Checked version of this function checks that they equal to 1.0. The Unchecked version of this function does not check that parameter.
With cursor functions on runListCommand the error checking is well defined.