Skip to main content
interface SqliteDeserializeOptions
import { type SqliteDeserializeOptions } from "";

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


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.

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.