Skip to content

Commit

Permalink
fix(query-engine-node-api): fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jkomyno committed Nov 24, 2023
1 parent 5b352ef commit 20d8a40
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion query-engine/driver-adapters/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ metrics = "0.18"
uuid = { version = "1", features = ["v4"] }
pin-project = "1"
wasm-rs-dbg = "0.1.2"
serde_repr.workspace = true

# Note: these deps are temporarily specified here to avoid importing them from tiberius (the SQL server driver).
# They will be imported from quaint-core instead in a future PR.
Expand All @@ -37,7 +38,6 @@ quaint.workspace = true
quaint = { path = "../../quaint" }
js-sys.workspace = true
serde-wasm-bindgen.workspace = true
serde_repr.workspace = true
wasm-bindgen.workspace = true
wasm-bindgen-futures.workspace = true
tsify.workspace = true
4 changes: 2 additions & 2 deletions query-engine/driver-adapters/src/queryable/napi.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::napi::proxy::{CommonProxy, DriverProxy};
use crate::JsQueryable;
use napi::JsObject;
use psl::datamodel_connector::Flavour;
use crate::types::AdapterFlavour;

/// A JsQueryable adapts a Proxy to implement quaint's Queryable interface. It has the
/// responsibility of transforming inputs and outputs of `query` and `execute` methods from quaint
Expand All @@ -18,7 +18,7 @@ use psl::datamodel_connector::Flavour;
///
pub(crate) struct JsBaseQueryable {
pub(crate) proxy: CommonProxy,
pub flavour: Flavour,
pub flavour: AdapterFlavour,
}

pub fn from_napi(driver: JsObject) -> JsQueryable {
Expand Down
1 change: 1 addition & 0 deletions query-engine/query-engine-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ serde_json.workspace = true
tsify.workspace = true
wasm-bindgen.workspace = true
wasm-bindgen-futures.workspace = true
wasm-rs-dbg.workspace = true

prisma-models = { path = "../prisma-models" }

Expand Down

0 comments on commit 20d8a40

Please sign in to comment.