Migration State

JSON →
library 0.3.0 ·javascript
verified Jun 7, 2026

A Bun-based TypeScript CLI tool that reads PostgreSQL migration files from disk, applies them sequentially in-memory using @supabase/pg-parser (WASM PostgreSQL 17 parser), and outputs the final schema state as LLM-optimised markdown or JSON. v0.3.0 supports 46 DDL statement types and auto-detects migration tools including Flyway, golang-migrate, goose, dbmate, sql-migrate, Prisma, Drizzle, and Atlas. Unlike existing tools that require a live database connection, this runs purely offline, making it ideal for CI/CD and LLM context injection. Work-in-progress but functionally complete for common DDL patterns.