mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-19 16:32:23 +00:00
Wrap Statement .all()/.get()/.run() via autoFinalizeStatement() with try/finally calling stmt.finalize() post-execution, releasing native sqlite3_stmt memory immediately instead of waiting for GC. Safe because: - Drizzle one-time queries invoke each statement once only - Drizzle does not access statement after .all()/.get()/.run() returns - Migration scripts use isolated new Database() instances (unpatched) - No app code holds persistent .prepare() refs on main db |
||
|---|---|---|
| .. | ||
| schema | ||
| driver.ts | ||
| index.ts | ||
| logsDriver.ts | ||
| migrate.ts | ||
| safeRead.ts | ||