Skip to content

feat: use pglite for type generation so postgres isn't required#37

Open
MrAnderson323 wants to merge 8 commits into
seveibar:mainfrom
MrAnderson323:hyphaforge/issue-2-mqk03grz
Open

feat: use pglite for type generation so postgres isn't required#37
MrAnderson323 wants to merge 8 commits into
seveibar:mainfrom
MrAnderson323:hyphaforge/issue-2-mqk03grz

Conversation

@MrAnderson323

Copy link
Copy Markdown

Replaces the need for a running PostgreSQL instance during db:generate by using PGlite (@electric-sql/pglite), which runs PostgreSQL in WebAssembly in-process. The generate command now spins up an ephemeral PGlite instance, applies the user's migrations/schema, runs the type generation queries against it, and exits — no external DATABASE_URL required. A live PostgreSQL connection is still used for runtime operations.


Closes #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.

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

1 participant