Skip to content
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

Extensible code generation / support for alternative pg interfaces and template based code generation #230

Open
magick93 opened this issue Nov 17, 2023 · 1 comment

Comments

@magick93
Copy link

Hello

The db-first approach is wonderful, and opens up many possibilities.

I'm interested to hear if the following ideas would be possible, and if if so, what issues, if any, you see.

@extraymond
Copy link

extraymond commented Aug 20, 2024

it would be nice to use cornucopia within cloudflare worker.

cloudflare worker is a wasm-based edge computing platform. It currently provides a way to connect to tokio-postgres with their custom socket-connect function.
https://github.com/cloudflare/workers-rs/blob/main/examples/tokio-postgres/src/lib.rs

currently sqlx is blocked there because not all of the dependencies are able to be compiled under wasm32.

If I understand correctly, since the query generated by cornucopia are not tightly coupled with the underlying driver, I suppose one might be able to use the connection build within cloudflare-worker to substitute the generated one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants