3 ms·
Does this unlock something re: postgrest? I'm way out of my depth; the level of detail I can bring is the factoid 'postgrest runs on haskell'
by forgetbook 3y ago
Does this unlock something re: postgrest? I'm way out of my depth; the level of detail I can bring is the factoid 'postgrest runs on haskell'
- chatmasta 3y agoMaybe, but probably not. Postgrest still needs to talk to Postgres over the Postgres wire protocol, which isn't possible with wasm in the browser because there is no raw socket API. However, I'm sure there are some cool hacks you could do like running postgres-wasm "locally" (also within the browser) and having postgres talk to it. You'd still need to modify Postgrest to change how it speaks to Postgres, though. This is also assuming you're running the WebAssembly in the browser. If you're running it in something like WASI, you might have access to a raw socket API and then maybe it's a different story.
- kreetx 3y agoMaybe: if you have a postgres (no "t") service provider and you can't install postgrest on it, then you can now possibly run it in the browser. Though, it adds the problem of how do you connect one with the other. Even if there existed a workaround to make this connection, it might just not be worth it.