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

x/denodb/deps.ts>Bson.ObjectId.generate

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

Generate a 12 byte id buffer used in ObjectId's

Parameters

optional
time: number
  • pass in a second based timestamp.

Returns

Buffer