fix(rivetkit): harden sqlite-vfs lifecycle, remove getSqliteVfs#4277
fix(rivetkit): harden sqlite-vfs lifecycle, remove getSqliteVfs#4277NathanFlurry merged 1 commit intomainfrom
Conversation
|
🚅 Deployed to the rivet-pr-4277 environment in rivet-frontend
|
b809ae3 to
55f6824
Compare
3f6b6f4 to
0ea89b2
Compare
PR Review:
|
| Severity | Location | Issue |
|---|---|---|
| Minor / Follow-up | src/db/sqlite-vfs.ts |
getSqliteVfs still exports a singleton under the old name, inconsistent with new createSqliteVfs semantics |
| Minor | vfs.ts SqliteSystem.close() |
Open database handles not explicitly closed before VFS teardown; expected call order should be documented or enforced |
| Minor | vfs.ts OpenFile |
useLegacyChunkKeys + legacyFileNameBytes? pairing uses ! assertions; discriminated union would be safer |
| Informational | vfs.ts |
destroy() / close() are identical; document which is canonical |
None of these block merging. The lifecycle hardening, input validation, and SQL injection fix are all improvements worth shipping.
PR Review:
|
55f6824 to
f7de1a2
Compare
0ea89b2 to
1f65631
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: