Move database work off the main thread on Node.js 24 and improve message handling and runtime diagnostics. Preserve migration, restart, and concurrency coverage with the async SQLite driver.
7 lines
243 B
TypeScript
7 lines
243 B
TypeScript
import { SqliteDatabase } from '@snowluma/sqlite';
|
|
|
|
/** Opens asynchronously with the shared WAL, durability and busy-timeout defaults. */
|
|
export function openSqliteDb(dbPath: string): SqliteDatabase {
|
|
return new SqliteDatabase(dbPath);
|
|
}
|