electric-sql / pglite

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

Python client for pglite #226

Open FrikadelleHelle opened 1 month ago

FrikadelleHelle commented 1 month ago

Creating this issue to try and track the progress on a 'native' python client for pglite.

Is it correctly understood that postgres.wasm needs to be changed to not be dependent on the javascript implementation of 'custom Emscripten non-standard functions' that are not implemented in the postgres.wasm yet? https://github.com/electric-sql/pglite/issues/89

pmp-p commented 1 day ago

setjmp is coming soon to wasi, so probably next wasi-sdk will open the path to a native python pglite. Worst case scenario will be almost native via wasmtime-py module, as it can already work without setjmp ( but that is not very practical ).