-
Notifications
You must be signed in to change notification settings - Fork 238
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
feat(js-connectors): create Wasm Query Engine, query-engine-wasm-api
#4118
Conversation
Signed-off-by: Alex Chi <iskyzh@gmail.com>
Signed-off-by: Alex Chi <iskyzh@gmail.com>
Signed-off-by: Alex Chi <iskyzh@gmail.com>
Signed-off-by: Alex Chi <iskyzh@gmail.com>
Signed-off-by: Alex Chi <iskyzh@gmail.com>
…t driver object as with napi.rs, rename Wasm name to "libquery_wasm"
* support http mode for neon driver Signed-off-by: Alex Chi <iskyzh@gmail.com> * apply comments Signed-off-by: Alex Chi <iskyzh@gmail.com> --------- Signed-off-by: Alex Chi <iskyzh@gmail.com>
CodSpeed Performance ReportMerging #4118 will degrade performances by 15.26%Falling back to comparing Summary
Benchmarks breakdown
|
I have refined the previous pull request to include all the changes outside of the WASM module, so that this PR's scope will only be adding the two new crates and it would be easier to rebase / merge :) #4117 |
This PR is based on the
skyzh/wasm-connector-new
branch ofneondatabase/prisma-engines
.This PR depends on:
It implements:
query-engine-wasm-api
, that is a Query Engine compatible withwasm32-unknown-unknown
wasm-connectors
, which implements the wasm-compatibleProxy
andJsQueryable
structs equivalent to their napi.rs counterparts injs-connectors
. Lots of code is duplicated between these two modules right now. Eventually, we should unify it and use compile-time conditional flags when necessary.This PR will be used as a middle point between the current
main
branch ofprisma/prisma-engines
(as of 3b74ba3) and #4117.You can build a Wasm query engine via:
cargo build -p query-engine-wasm-api --target wasm32-unknown-unknown --release