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

x/denodb/deps.ts>Bson.Long.fromString

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

Returns a Long representation of the given string, written using the specified radix.

Parameters

str: string
  • The textual representation of the Long
optional
unsigned: boolean
  • Whether unsigned or not, defaults to signed
optional
radix: number
  • The radix in which the text is written (2-36), defaults to 10

Returns

The corresponding Long value