Revision 35f23bca29fe593d629b82386c448aee840fcc18
Committed on 18/12/2025 11:23 am by
Zohaib Sibte Hassan <zohaib@sibte.pk> [GitHub Diff]
Refactor: Unified TableSchema eliminates duplicate PRAGMA parsers
- Create db/schema.go with canonical TableSchema and ColumnSchema types
- Extend SchemaCache to extract full column metadata (type, nullable, PK)
- Migrate DatabaseManager.GetTableSchema to use cached schema
- Migrate coordinator to use cached schema for auto-increment detection
- Migrate replica/stream_client.go to use unified CDC applier
- Remove protocol/schema_provider.go (deprecated duplicate PRAGMA parser)
- Remove protocol/intent_key_compat_test.go (tested deleted function)
Net reduction: 656 lines (908 deleted, 252 added)
???? Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>