Feature/esp jsondb v2#11
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
feature/esp-jsondb-v2branch intomainand finalizes the ESPJsonDB v2 release line..jdbrecord storage with persisted metadata, and moves generic file APIs behinddb.files().Type of Change
Details
.jdbrecords, persisted_id/createdAtMs/updatedAtMs/revision/flags, revision-aware update paths, collection load policies (Eager,Lazy,Delayed), explicit snapshot modes, and a dedicatedFileStore.ESPJsonDBandCollectioninto thin public facades so runtime-owned state is no longer exposed in public headers.getDiag(),getAllCollectionName(),unRegisterSchema(), direct file helpers onESPJsonDB,cacheEnabled,coldSync, anddelayedCollectionSyncArray.flagsv2 envelope, but v2 does not provide automatic on-disk compatibility with legacy v1.mpfiles.Testing
Describe how you tested the changes. Include commands, logs, or screenshots if helpful.
examples/FileStreaminglocally with PlatformIO foresp32dev:db.files()API migration.Compatibility / Breaking Changes
db.files(). Example:db.writeTextFile(...)->db.files().writeTextFile(...);cancelFileUpload(...)->db.files().cancelUpload(...);getFileUploadState(...)->db.files().getUploadState(...).getDiag()->getDiagnostics(),getAllCollectionName()->listCollectionNames(),unRegisterSchema()->unregisterSchema().ESPJsonDBConfig::cacheEnabled,coldSync, anddelayedCollectionSyncArrayare removed. UseconfigureCollection(name, CollectionConfig{...})for per-collection load behavior..mppayload files to.jdbrecords with persisted_meta. Existing v1 data is not auto-read by v2._meta; downstream snapshot consumers need to accept the new shape.Risks and Mitigations
Checklist
Environment
platform-espressif3255.3.37+sha.a9fac07; framework-arduinoespressif32 3.3.7; toolchain-xtensa-esp-elf 14.2.0+20251107; ArduinoJson 7.4.3; StreamUtils 1.9.2; ESPBufferManager 0.1.0+sha.a72e21bLinux 6.17.0-19-generic x86_64)feature/esp-jsondb-v2, head78daa4f