Skip to content

Make generated db:generate use PGlite by default#44

Open
Veape229 wants to merge 1 commit into
seveibar:mainfrom
Veape229:fix-db-generate-pglite
Open

Make generated db:generate use PGlite by default#44
Veape229 wants to merge 1 commit into
seveibar:mainfrom
Veape229:fix-db-generate-pglite

Conversation

@Veape229

@Veape229 Veape229 commented Jul 5, 2026

Copy link
Copy Markdown

Closes #2
/claim #2

Summary

  • Update initPgstrap so newly initialized projects run pgstrap generate --pglite for db:generate.
  • Update the init test expectation to match the generated script.
  • Clarify in the README that npm run db:generate uses an in-memory PGlite database to generate types and structure from migrations.

Testing

  • npx biome check README.md src/init.ts tests/init.test.ts
  • npm run build with a local typescript@5.4.5 install
  • Verified initPgstrap writes db:generate as pgstrap generate --pglite in a temporary project

Note: I could not run bun test locally because Bun is not installed in this environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use pglite so that postgres isn't required when generating types

1 participant