Skip to content

Make db:generate run through PGlite by default#30

Open
MANFIT7 wants to merge 1 commit into
seveibar:mainfrom
MANFIT7:codex/default-generate-pglite
Open

Make db:generate run through PGlite by default#30
MANFIT7 wants to merge 1 commit into
seveibar:mainfrom
MANFIT7:codex/default-generate-pglite

Conversation

@MANFIT7
Copy link
Copy Markdown

@MANFIT7 MANFIT7 commented May 21, 2026

@algora-pbc /claim #2

Closes #2

Summary

  • scaffolds db:generate as pgstrap generate --pglite so new projects do not need a running Postgres server for generated types and structure dumps
  • makes direct pgstrap generate use PGlite by default, with --no-pglite as the external-Postgres opt-out
  • restores DATABASE_URL and closes the temporary PGlite gateway server in finally
  • adds regression coverage for default PGlite generation and the generated init script

Verification

  • bun test
  • bun run format:check
  • PATH="/Applications/Codex.app/Contents/Resources:$PATH" bun run build
  • git diff --check

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