-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] ORM Support for Rust Workers #612
Comments
Hi @ChihweiLHBird, we (@RustLangES) are planning to do an implementation of an agnostic ORM focused on Cloudflare Workers in Rust. You can follow our progress in this discussion. We are an spanish community, but we accept people who speak any language. |
We've discussed an integration with something like SQLx, but the API surface that we would need to implement is quite daunting. |
@kflansburg We already have an experimental ORM for one of our project (The api is not the best). As I said it is so experimental, but we are working on to build a library to extend Cloudflare Workers. It will have a lot of utilities to do the best developer experience. The same as @ChihweiLHBird, I invite you to our discussion or discord to share us your ideas. |
While not a full a ORM, I created a PR to allow cornucopia to be used within cloudflare-worker. cornucopia is a SQL first query-builder to generate rust query. |
Just found this in the sea-orm repo By creating proxy-backend allows one to use sea-orm that calls D1, maybe the same can be made for postgres that calls the socket.connect without having to rely on sqlx(used by sea-orm) for providing the connection. |
This does look like a pretty simple interface to implement. I haven't used Sea ORM. Pulling this in for D1, as well as supporting Hyperdrive (behind a crate feature) seems pretty interesting. |
this is an issue i first posted @ SeaQL/sea-query#838, but i'll just copy over the contents here in case it has any relevance
|
Is there an existing issue for this?
Description
JavaScript workers are capable of Prisma ORM to query Cloudflare D1 database: https://developers.cloudflare.com/d1/tutorials/d1-and-prisma-orm/
It would be very nice to have a similar ORM support in the Rust workers as well.
The text was updated successfully, but these errors were encountered: