We created a simple migrations library for cozodb called cozo-migrate (on pypi and github). We found that updating our cozo schema as our applications evolved was becoming unwieldy and error-prone so we created this simple library. Features:
It uses typer and pycozo as its only dependencies.
Loosely modeled after hasura-migrate which is one of the simplest migration tools I have used.
Auto-rollback if something goes wrong during the migrations
Has a programmatic API for using inside tests etc.
It is a work in progress but I'd love to hear your takes and hope that the community finds it useful. :)
Hey everyone,
We created a simple migrations library for cozodb called
cozo-migrate
(on pypi and github). We found that updating our cozo schema as our applications evolved was becoming unwieldy and error-prone so we created this simple library. Features:pycozo
as its only dependencies.It is a work in progress but I'd love to hear your takes and hope that the community finds it useful. :)
cc/ @zh217 @michaelsbradleyjr @sean-lynch @liangxianzhe