Skip to main content
Module

x/denodb/deps.ts>Bson.Code

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Latest
class Bson.Code
import { Bson } from "https://deno.land/x/denodb@v1.4.0/deps.ts";
const { Code } = Bson;

A class representation of the BSON Code type.

Constructors

new
Code(code: string | Function, scope?: Document)

Properties

_bsontype: "Code"
code: string | Function
optional
scope: Document

Methods

inspect(): string
toJSON(): { code: string | Function; scope?: Document; }