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

x/nessie/deps.ts>SQLiteClient#serialize

A modular Deno library for PostgreSQL, MySQL, MariaDB and SQLite migrations
Latest
method SQLiteClient.prototype.serialize
import { SQLiteClient } from "https://deno.land/x/nessie@2.0.11/deps.ts";

Serialize a database.

The format is the same as would be written to disk when modifying a database opened from a file. So for an on-disk database file, this is just a copy of the file contents on disk.

If no schema name is specified the default (main) schema is serialized.

Examples

const data = db.serialize();

Serialize the in-memory temporary database

const temp = db.serialize("temp");

Parameters

optional
schema: "main" | "temp" | string = [UNSUPPORTED]

Returns

Uint8Array