> [!WARNING] > If you're upgrading from version 1, it's likely there are many breaking > changes. In Version 2 we switched off `libpq-query` so that we could have > node-native query parsing/generation.
npm install pg-schema-dumppg-schema-dump> [!WARNING]
> If you're upgrading from version 1, it's likely there are many breaking
> changes. In Version 2 we switched off libpq-query so that we could have
> node-native query parsing/generation.
This is an alternative to pg_dump written in node. You can use this to get
all the SQL to recreate a schema or a diretory representing a schema, which
is awesome for viewing database changes.

npm add -D pg-schema-dump
``bashBy default, pg-dump knows POSTGRES_HOST, DATABASE_URL, etc.
pg-schema-dump dump
$3
"Tree Dumps" are great for code reviews. They use a directory structure to
easily diff database changes. For example, a table definition goes into a file
in