Skip to main content
Module

x/denodb/deps.ts>SQLiteClient#serialize

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Latest
method SQLiteClient.prototype.serialize
import { SQLiteClient } from "https://deno.land/x/denodb@v1.4.0/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