mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-22 03:10:30 +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 |
||
|---|---|---|
| .. | ||
| auth | ||
| db | ||
| emails | ||
| lib | ||
| license | ||
| middlewares | ||
| private | ||
| routers | ||
| setup | ||
| types | ||
| apiServer.ts | ||
| cleanup.ts | ||
| extendZod.ts | ||
| index.ts | ||
| integrationApiServer.ts | ||
| internalServer.ts | ||
| logger.ts | ||
| nextServer.ts | ||
| openApi.ts | ||