Skip to content

Default generate command to PGlite#20

Open
kmheike123 wants to merge 2 commits into
seveibar:mainfrom
kmheike123:codex/default-pglite-generate
Open

Default generate command to PGlite#20
kmheike123 wants to merge 2 commits into
seveibar:mainfrom
kmheike123:codex/default-pglite-generate

Conversation

@kmheike123
Copy link
Copy Markdown

Summary

  • make pgstrap generate use PGlite by default so type/structure generation does not require a running Postgres instance
  • keep --no-pglite as an explicit opt-out for users who want to generate from a live Postgres database
  • update the README to describe the new default behavior

Verification

  • npm run build reaches JS bundle success, then fails during DTS generation on the existing TypeScript baseUrl deprecation in this repository
  • using the generated dist/cli.cjs, ran pgstrap generate in a temporary project with no Postgres server running and confirmed it generated src/db/zapatos/schema.d.ts and src/db/structure/public/tables/foo/table.sql

@algora-pbc /claim #2

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.

1 participant