launchbadge / sqlx

🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.
Apache License 2.0
13.52k stars 1.28k forks source link

sqlx + wasm #1145

Open abhijeetbhagat opened 3 years ago

abhijeetbhagat commented 3 years ago

Hello! I am working on a wasm app that interacts with postgres using sqlx. For this, I added websocket support in sqlx and a ws-tcp proxy is needed between the wasm app and postgres. I have tested querying using websocat and it works.

My changes haven't been battle tested yet. However, I wanted to know if the community is interested in making such a feature part of sqlx. If so, I can raise a PR and have the changes reviewed and improved.

maxwellflitton commented 7 months ago

@abhijeetbhagat do you still have the code for this as I'd love to see it

abhijeetbhagat commented 7 months ago

@abhijeetbhagat do you still have the code for this as I'd love to see it

hi @maxwellflitton ! i think i do. but let me check.

EDIT: oh, hang on. just saw my pr linked above. all code changes are in there. however, the changes were made in 2021 so ...