Replies: 1 comment 4 replies
-
Thanks for opening this post here. This sounds like a great idea. We do not have any planes to add additional connection/backend implementations to diesel itself. As you already noticed any additional implementation should be provided by a third party crate. We are happy to support the development of such third party implementations by exposing any necessary type via the For the actual implementation: I would likely go for a fully custom backend in this case, as this gives you the necessary control about which kind of query is supported, how to represent bind/result values and so on.
At least I personally do not have any capacity to work on this on paid basis. I cannot comment for other team members. |
Beta Was this translation helpful? Give feedback.
-
Rust is a great language for writing WASM plugins, and if the plugins need database, PostgREST is an option because HTTP is available to WASM code, but not raw sockets (so DB drivers are not possible in WASM context, unless you use WASI, but if you plan to target web browser, you will probably never get raw socket access there).
For making DB calls diesel is pretty great option, but does not work in WASM context today because there is no diesel connection implementation. I think it would be great if it was possible.
A developer in my team is looking at implementing support for it (its going to be open source), but we are just getting started. If you are already working on this, or want to join us, maybe even in paid capacity, I would love to hear from you.
Disclosure: we are a (seed) funded startup, FifthTry.com, and this is part of an open source technology we are working on.
Beta Was this translation helpful? Give feedback.
All reactions