nexusql: PostgreSQL Migration Toolkit with DBML Support

JSON →
library 0.9.10 ·javascript
verified Jun 7, 2026

nexusql is a database migration toolkit for PostgreSQL that uses DBML (Database Markup Language) schema definitions to generate and apply migration SQL. Current stable version is 0.9.10. It is actively maintained with weekly releases. Unlike other migration tools, nexusql integrates with migra (a Python diffing engine) to produce accurate migration SQL by comparing the live database schema against the DBML file. It also generates TypeScript type definitions from the schema, making it particularly useful for full-stack TypeScript projects. Major features include CLI commands for initialization, migration generation, applying/rolling back migrations, and type generation. The tool bundles most dependencies except migra, which must be installed separately via pip.