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

x/denodb/deps.ts>Bson.Binary#write

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

Writes a buffer or string to the binary.

Parameters

sequence: string | BinarySequence
  • a string or buffer to be written to the Binary BSON object.
offset: number
  • specify the binary of where to write the content.