Files
SnowLuma/packages/onebot/src/sqlite-open.ts
T
MliKiowa c7428363cb feat: add async SQLite on Node 24 and improve messaging diagnostics (#520)
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.
2026-10-13 10:12:47 +08:00

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);
}