sql-mirror

JSON →
library 0.4.1 ·javascript
verified Jun 5, 2026

sql-mirror is an opinionated SQL migration generator that produces up/down SQL files from reusable raw SQL chunks. Version 0.4.1 is the latest stable release with no set release cadence. It focuses on consistency: automatically adds id columns using UUID v4, created_at/updated_at timestamps, and enforces topological ordering of tables based on foreign key references. Differentiators include a built-in trigger function for updated_at, zero runtime dependencies, and a JSON config output for version control.