electric-sql / pglite

Lightweight WASM Postgres with real-time, reactive bindings.
https://pglite.dev
Apache License 2.0
9.45k stars 204 forks source link

feat: Add a describeQuery method #404

Closed samwillis closed 1 week ago

samwillis commented 1 month ago

This new describeQuery method returns the parameter and returns types for a sql query. It can be used to build a type inference system on top of PGlite.

See an example of how to use it here: https://github.com/samwillis/pglite-type-inference

https://github.com/user-attachments/assets/53c45387-7abd-405f-9012-1a590c15c18b

github-actions[bot] commented 1 month ago

Built bundles:

github-actions[bot] commented 1 month ago

🚀 Deployed on https://673339f43d11a900bd20fa43--pglite.netlify.app