Skip to main content
Module

x/mongo/mod.ts

MongoDB driver for Deno
Extremely Popular
Go to Latest
import * as mongo from "https://deno.land/x/mongo@v0.31.0/mod.ts";

Classes

A class representation of the BSON RegExp type.

A class representation of the BSON Symbol type.

BufReader implements buffering for a Reader object.

A class representation of the BSON Code type.

A class representation of the BSON DBRef type.

A class representation of the BSON Decimal128 type.

A class representation of the BSON Double type.

A class representation of a BSON Int32 type.

A class representing a 64-bit integer

A class representation of the BSON MaxKey type.

A class representation of the BSON MinKey type.

A class representation of the BSON ObjectId type.

A class representation of the BSON UUID type.

A class representation of the BSON RegExp type.

A class representation of the BSON Symbol type.

A class representation of the BSON Code type.

A class representation of the BSON DBRef type.

A class representation of the BSON Decimal128 type.

A class representation of the BSON Double type.

A class representation of a BSON Int32 type.

A class representing a 64-bit integer

A class representation of the BSON MaxKey type.

A class representation of the BSON MinKey type.

A class representation of the BSON ObjectId type.

A class representation of the BSON UUID type.

Variables

Binary Default Type @internal

An wrapper for WebCrypto adding support for additional non-standard algorithms, but delegating to the runtime WebCrypto implementation whenever possible.

Any integer up to 2^53 can be precisely represented by a double.

Any integer down to -2^53 can be precisely represented by a double.

Functions

Decodes a given RFC4648 base64 encoded string

CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727 Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation

Calculate the bson size for a passed in Javascript object.

Creates a Promise with the reject and resolve functions placed as methods on the promise object itself. It allows you to do:

Deserialize data as BSON.

Deserialize stream data as BSON documents.

Deserializes an Extended JSON object into a plain JavaScript object with native/BSON types

Parse an Extended JSON string, constructing the JavaScript value or object described by that string.

Serializes an object to an Extended JSON string, and reparse it as a JavaScript object.

Converts a BSON document to an Extended JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.

Decodes src into src.length / 2 bytes. If the input is malformed, an error will be thrown.

Encodes src into src.length * 2 bytes.

Serialize a Javascript object.

Serialize a Javascript object using a predefined Buffer and index into the buffer, useful when pre-allocating the space for serialization.

Sets the size of the internal serialization buffer.

Write all the content of the array buffer (arr) to the writer (w).