Mongodb v0.4.3 API Reference

Modules

Functions for encoding and decoding BSON documents

Represents BSON binary type

Represents BSON JavaScript (with and without scope) types

Represents BSON ObjectId type

Represents BSON Regex type

Represents BSON Timestamp type

The main entry point for doing queries. All functions take a topology to run the query on

The successful result struct of Mongo.delete_one/4 and Mongo.delete_many/4. Its fields are

Published when server is closed

Published when server description changes, but does NOT include changes to the RTT

Fired when the server monitor’s ismaster fails, either with an “ok: 0” or a socket exception

Fired when the server monitor’s ismaster command is started - immediately before the ismaster command is serialized into raw BSON and written to the socket

Fired when the server monitor’s ismaster succeeds

Published when server is initialized

Published when topology is closed

Published when topology description changes

Published when topology is initialized

The successful result struct of Mongo.insert_many/4. Its fields are

The successful result struct of Mongo.insert_one/4. Its fields are

PBKDF2 implements PBKDF2 (Password-Based Key Derivation Function 2), part of PKCS #5 v2.0 (Password-Based Cryptography Specification). It can be used to derive a number of keys for various purposes from a given secret. This lets applications have a single secure secret, but avoid reusing that key in multiple incompatible contexts. see http://tools.ietf.org/html/rfc2898#section-5.2

Determines which servers are considered suitable for read operations

This acts as a single topology consisting of many connections, built on top of the existing connection API’s. It implements the Server Discovery and Monitoring specification, along with the Mongo.ServerMonitor module

The successful result struct of Mongo.update_one/5, Mongo.update_many/5 and Mongo.replace_one/5. Its fields are

Exceptions