This is very cool. Having to always set up a server is one major downside of Postgres, with cumbersome updates being the second. This solves the first and has potential to help with the second.
Is there a way to compile this as a native library? I imagine some of the work should be reusable.
Native library is on our radar!
Took the words out of my mouth, i can think of many use cases for this.
Imagine being able to go from 'embedded' to 'networked' without having to change any SQL or behavior, so cool.
Yes! I (experimentally) compiled and packaged it for react-native. Postgres on iOS and Android https://github.com/electric-sql/pglite/pull/774