Skip to content

Choose a tag to compare

@github-actions github-actions released this 26 Nov 10:00
· 2 commits to master since this release

FQLite 5.4

  • JSONB (SQLite 3.45+): BLOBs in SQLite's binary JSON format (written by jsonb(), jsonb_set(), jsonb_insert(), jsonb_patch(), ...) are recognized and decoded in live, deleted, and WAL records. The table cell shows [BLOB-n] JSONB {...} (first 200 characters), tooltip, "Decode column into fields," and the BLOB viewer (double-click) show the JSON tree; the hex view keeps the raw bytes. The output is exactly what SQLite's json() returns, JSON5 elements (INT5, FLOAT5, TEXT5) included. JSONB has no magic number: a BLOB is taken for JSONB only if it is a complete, structurally valid array or object (scalars and one-byte values are not detected automatically; they would match too many other BLOBs). New: fqlite.blob.Jsonb, BLOBTYPE.JSONB, headless RecoveryResult.getJson(record, column), ./gradlew jsonbTest.
  • Large BLOBs / 64-bit values: serial types and payload lengths are read as 64-bit values. BLOBs and texts larger than ~1 GiB (serial type above 2^31; possible with SQLITE_MAX_LENGTH raised to its maximum of 2^31-1 and the 64-bit APIs such as sqlite3_bind_blob64()/sqlite3_bind_zeroblob64()) were not recognized before - the record was lost, and its overflow pages showed up as garbage "deleted" records. They are now recovered completely (tested with 1.2 GB and 2.1 GB BLOBs). The overflow chain is read directly into the record buffer instead of being collected and copied twice, so a large BLOB needs about twice its size in heap (before: four times). A record that does not fit into the heap is skipped with a message (start with a larger -Xmx).
  • Rowids above 2^31 (e.g. timestamps or 64-bit IDs as INTEGER PRIMARY KEY, common in messenger databases) were shown truncated/negative for live records (5000000000 → 705032704); rowids are now read as signed 64-bit varints.
  • Deleted records with overflow pages: the BLOB of such a record was stored under a wrong key (offset column index 2 instead of 0, "Number format exception: compute hash failed") - the BLOB was missing or belonged to another record; records near the end of a page whose local part could not be copied were dropped; an overflow chain that ended early dropped the whole record - now the readable part is kept and flagged "⚠ truncated".
  • fqlite-mcp is now available as a separate jar-archive file ready to use within agentic workflows.

GitHub Downloads (all assets, specific tag)