WClickHouse TableSync automates schema migrations without downtime or manual scripts
WClickHouse, an open-source Python library, introduces TableSync, a feature that automatically syncs ClickHouse table schemas with Pydantic model definitions. When a developer adds a new field to a Pydantic model, TableSync detects the missing column and runs the necessary ALTER TABLE command without manual intervention. The tool is non-destructive, meaning it only adds new columns and never removes existing ones or modifies prior partitions. It supports Python versions 3.9 through 3.14 and is built on Apache Arrow and Pydantic v2. The project is available on GitHub and PyPI, and has been tested against real ClickHouse instances with over 95% test coverage.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in