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.2/mod.ts";

Namespaces

encode and decode for base64 encoding.

Port of the Go encoding/hex library.

Classes

A class representation of the BSON Binary type.

A class representation of the BSON Binary type.

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

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

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.

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).

Interfaces

The document returned by the buildInfo command.

Options for controlling the collation of strings in a query

Options for the findAndModify operation