mongodb-driver v0.5.1 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.
MongoDB Cursor as a stream. There are two variants:
The successful result struct of Mongo.delete_one/4
and Mongo.delete_many/4
.
Its fields are
The bucket has some configuration options
The main entry point for downloading files from the grid-fs specified by the bucket struct.
The main entry point for uploading files into the grid-fs specified by the bucket struct.
This is the upload stream for save streams into the grid fs.
The successful result struct of Mongo.insert_many/4
. Its fields are
The successful result struct of Mongo.insert_one/4
. Its fields are
This module encodes and decodes the data from and to the mongodb server. We only support MongoDB >= 3.2 and use op_query with the hack collection "$cmd" Other op codes are deprecated. Therefore only op_reply and op_query are supported.
Implementierung für das DBConnection-Protokoll.
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
This is the query implementation for the Query Protocoll
Determines which servers are considered suitable for read operations
The successful result struct of Mongo.update_one/5
, Mongo.update_many/5
and Mongo.replace_one/5
. Its fields are
Mongo connection URL parsing util