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

Options for opening a database.

Properties

optional
mode: "read" | "write" | "create"

Mode in which to open the database.

  • read: read-only, throws an error if the database file does not exists

  • write: read-write, throws an error if the database file does not exists

  • create: read-write, create the database if the file does not exist (for an in-memory database this is the same as write)

create is the default if no mode is specified.

optional
memory: boolean

Force the database to be in-memory. When this option is set, the database is opened in memory, regardless of the specified filename.

optional
uri: boolean

Interpret the file name as a URI. See https://sqlite.org/uri.html for more information.