Skip to content

feat: default generate command to use pglite without requiring external postgres - #50

Open
moxiaoshen567 wants to merge 2 commits into
seveibar:mainfrom
moxiaoshen567:default-pglite-generate
Open

feat: default generate command to use pglite without requiring external postgres#50
moxiaoshen567 wants to merge 2 commits into
seveibar:mainfrom
moxiaoshen567:default-pglite-generate

Conversation

@moxiaoshen567

Copy link
Copy Markdown

Fixes #2

Summary

  • Defaults pgstrap generate (bun run db:generate) to use in-memory pglite: true by default, eliminating the requirement for a background Postgres instance.
  • Adds support for --no-pglite flag if users explicitly want to run generation against an external Postgres database.
  • Updated README documentation.
  • Added comprehensive integration tests in tests/cli.test.ts and tests/generate.pglite.test.ts.

Verification

All 5 tests pass (bun test):

  • cli generate runs with pglite by default without postgres
  • generate with pglite runs migrations and dumps structure
  • generate defaults to pglite without requiring external postgres
  • migration of a pglite db works
  • initPgstrap writes scripts to package.json

@algora-pbc /claim #2

@moxiaoshen567

moxiaoshen567 commented Aug 25, 2026

Copy link
Copy Markdown
Author

💰 Payout Details

  • USDC (Solana): 6UvBhyhY6ayeoJEGZxK4bDoFAHd9yeRDTVusnoDGdgQ5
  • USDT (TRON / TRC20): TYcNrMSoY36q8WrsFSZyB26Rkj25EFgQsX

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