Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface SqliteDeserializeOptions
import { type SqliteDeserializeOptions } from "https://deno.land/x/sqlite@v3.9.1/src/db.ts";

Options for opening a database from an in-memory buffer.

Properties

optional
schema: "main" | string

Name of the schema to deserialize into.

The default schema name is main, which refers to the database opened originally.

If a database schema with the given name does not exist, this fails.

optional
mode: "read" | "write"

Mode in which to open the deserialized database.

  • read: opens a read-only database

  • write: opens a read-write database in memory

write is the default if no mode is specified.