Repository navigation
Foldlite DB 0.3.3
State machine and lifecycle hardening
- Validate callback
Viewdefinitions before opening or resetting the native storage engine so invalid callback views never truncate an existing log whenreset=Trueis passed, and makeView.moduleread-only. - Release native ownership without writing a checkpoint (
{"op": "close", "checkpoint": false}) whenDatabase(...)initialization aborts on a generation mismatch or callback registration error, preserving any existing valid.cachesidecar on disk; reject opening an existing non-empty untagged database with an explicitgeneration. - Consolidate Python callback view state into a cohesive
_RegisteredViewstructure with atomic rollback on failedregister(), enforce re-entrancy guards (_callback_evaluating) across lazy group finalization and incremental projection reduction, and pass rebuilt callback checkpoints into{"op": "rebuild"}soDatabase.rebuild()writes and syncs.cacheonce with accuratecache.bytesreporting. - Support an explicit
view=keyword argument onDatabase.query()andDatabase.rows(), reject ambiguous simultaneous positional and keyword key selectors, and prevent guest Wasm"View rejected operation: ..."messages from being misclassified asDocumentConflictorCursorExpired. - Resolve symlink targets (including dangling symlinks) before validating primary log paths so dangling symlinks cannot target reserved
.cacheor.locksidecars, allow read-onlyFOLDLOG1and migration source logs to open without write permissions or in-place tail truncation, skip reading obsolete checkpoints whenreset=True, and validate ABI input/output buffer disjointness in native and JS reducer hosts. - Preserve caller watermark dictionaries in
stream_events, emitgapwithout a falsereadyframe when a subscriber overflows during replay, terminate closed subscriber loops cleanly, reject booleanmax_bytesinread_jsonl_tail, and markAppendJournalfailed onsync()verification errors.
See the upgrade guide and consolidated changelog.