/** * Open SQLite database, apply pragmas and schema. * If the path points to a file in a directory that does not exist, the directory is created. */ import Database from './driver.ts'; import type { DatabaseSyncOptions } from 'node:sqlite'; /** * Options: pragmaTemplate (default|performance|safety|minimal), pragma (custom key-value overrides), plus any node:sqlite DatabaseSync options. */ export interface OpenDbOptions extends DatabaseSyncOptions { pragmaTemplate?: string; pragma?: Record; } /** * @param dbPath - Database file path (or ':memory:') */ export declare function openDb(dbPath: string, options?: OpenDbOptions): Database;