Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/denodb/deps.ts>Bson.Decimal128

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

A class representation of the BSON Decimal128 type.

Constructors

new
Decimal128(bytes: Buffer | string)

Properties

_bsontype: "Decimal128"
readonly
bytes: Buffer

Methods

inspect(): string
toString(): string

Create a string representation of the raw Decimal128 value

Static Methods

fromString(representation: string): Decimal128

Create a Decimal128 instance from a string representation