Repository navigation
v0.3.1
Patch release following v0.3.0 with faster branch merge, SQL query / Web SQL runner fixes, module sync hardening, and CI/packaging reliability improvements.
Performance
- Faster Branch Line Merge (
F-03):sqlmergenow skips row-by-row comparison for tables whose digest is unchanged, speeding upbranch merge.
Fixed
- SQL Query & Web SQL Runner (
W-11):- Fixed a
sqlquerypanic on empty or comment-only inputs and improvedCRLF, line comment, nested block comment, andRETURNINGdetection. - Added optional
databasetargeting for PostgreSQL and MySQL acrossPOST /v1/branches/{name}/query, MCPquery, and the Web SQL runner, with database name validation to prevent DSN parameter injection. - Fixed Web SQL runner statement splitting for PostgreSQL JSONB
#operators, dollar-quoted strings, trailing backslashes, and nested comments, and added Stop / unmount cancellation.
- Fixed a
- Module Sync & Rolling Upgrade (
F-04):- Prevented downgrading installed packages that are already ahead of the cluster record during module sync and rolling updates.
- Serialized
apt-get/apt-cacheoperations via a context-aware semaphore to avoid lock contention. - Added bounded exponential backoff (1m to 30m) on module sync failures, along with SSE/notification events and
dbbranch_module_problemmetrics.
- Restore & Merge Guidance (
F-05): Clarifiedbranch restorecheckpoint behavior in documentation/UI and alignedbranch mergeerror messages when no changes exist past the common ancestor. - CI & Packaging (
W-24): Hardenedscripts/apt-restore-pool.shagainst transient HTTP errors and path traversal, pinned GitHub Actions to commit SHAs, enabledgo test -race ./...in CI, and fixed test race conditions.
Changed
- Compatibility & Raft Protocol (
26): No Raft protocol or state format changes since0.3.0. - Upgrade: Upgrade cluster nodes one by one (leader last) via
apt-get update && apt-get install db-branch(orapt upgrade). See docs/distribution.md and docs/updates.md.