V2 metadata format. Bump version to 0.18 - #26
Draft
gorbak25 wants to merge 9 commits into
Draft
Conversation
gorbak25
force-pushed
the
gorbak/new-clock-tables
branch
8 times, most recently
from
July 26, 2026 19:13
2e2097c to
f518c86
Compare
gorbak25
force-pushed
the
gorbak/new-clock-tables
branch
11 times, most recently
from
August 5, 2026 14:55
c0de1b2 to
2e0ab78
Compare
- Add V2 schema: v2_pks, v2_clock, v2_tombstones, v2_tombstone_pks, v2_col_map tables - Add on-demand V1-to-V2 hydration for rows not yet migrated - Add V2 local write triggers (after_insert, after_delete, after_update) - Add V2 merge path in changes_vtab_write (v2_merge_insert, v2_packed_merge) - Add backfill_v2 for migrating existing V1 metadata to V2 - Add alter_v2 for schema migration support - Add bootstrap_v2 for initial V2 table creation - Add hash_pk for PK hashing in V2 format - Add migrate.rs for V1-to-V2 migration orchestration - Add teardown_v2 for V2 table cleanup - Update config with metadata-write-version and metadata-use-version settings - Add unconditional timestamp check in merge_insert - Refactor v1_to_v2_hydrate_row to deduplicate clock copy logic
- Add v2_tests.rs: dual-write wire convergence, ts error handling, backfill tests - Add v2_compat_tests.rs: V1/V2 compatibility and wire format sync tests - Add rowid_check.rs: rowid key handling tests for V2 - Update sync helpers to use transactions with crsql_set_ts - Update test_db_version.rs with crsql_set_ts after BEGIN blocks
- Add crsql_set_ts calls in C test sync helpers and transaction blocks - Update ext-data with timestamp field for V2 metadata writes - Update consts.h with V2 constants - Wrap syncLeftToRight in BEGIN/COMMIT with crsql_set_ts
gorbak25
force-pushed
the
gorbak/new-clock-tables
branch
4 times, most recently
from
August 5, 2026 16:46
49cafd7 to
3d56b6c
Compare
gorbak25
force-pushed
the
gorbak/new-clock-tables
branch
from
August 5, 2026 16:48
3d56b6c to
4d06dea
Compare
- Unconditional timestamp checks in crsql_as_crr, crsql_begin_alter, crsql_commit_alter, and merge_insert - Cross-platform unlink fix in v2_tests.rs - Add crsql_set_ts() calls to Python integration tests
gorbak25
force-pushed
the
gorbak/new-clock-tables
branch
2 times, most recently
from
August 5, 2026 21:34
a64adaa to
22b1cb6
Compare
Author
|
Closes superfly/corrosion#366 |
gorbak25
force-pushed
the
gorbak/new-clock-tables
branch
from
August 7, 2026 11:56
22b1cb6 to
fa34016
Compare
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.
No description provided.