You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pgstrap allows you to easily run typescript migrations or generate a directory that represents your database schemas with `table.sql` files. Run `pgstrap generate` to generate a directory with the structure of your postgres database schemas!
6
+
pgstrap allows you to easily run typescript migrations or generate a directory that represents your database schemas with `table.sql` files. Run `pgstrap generate` to generate a directory with the structure of your postgres database schemas. By default, generation runs migrations against an in-memory PGlite database, so you do not need a local Postgres server just to refresh generated types.
7
7
8
8
## Features
9
9
@@ -55,7 +55,7 @@ npm install pgstrap --save-dev
55
55
56
56
-`npm run db:migrate` - Run pending migrations
57
57
-`npm run db:reset` - Drop and recreate the database, then run all migrations
58
-
-`npm run db:generate` - Generate types and structure dumps. Use `pgstrap generate --pglite` to run migrations against an in-memory PGlite instance.
58
+
-`npm run db:generate` - Generate types and structure dumps with an in-memory PGlite database by default. Use `pgstrap generate --no-pglite` to generate from an external Postgres database configured by `DATABASE_URL`.
59
59
-`npm run db:create-migration` - Create a new migration file
0 commit comments