CLI tool that scans a PostgreSQL database and outputs DBML (Database Markup Language) files. Current stable version is 1.0.0, with unknown release cadence. Key differentiator: automates DBML generation directly from a live Postgres database connection, supporting schema/table filtering and separate file output. Requires Node.js >=16.10.0.
npm install pg-to-dbmlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to a Postgres database and outputs DBML files for all tables in the public schema.
Update Node.js to >=16.10.0 or use an older version of the package.
Ensure DATABASE_URL is set or pass -c argument.
Always specify --db flag with the database name.
Verify credentials and check PostgreSQL pg_hba.conf settings.
Run npm install in the project directory.