Skip to content

Commit

Permalink
attempt with current surrealdb
Browse files Browse the repository at this point in the history
  • Loading branch information
kearfy committed Jan 20, 2025
1 parent 14868e5 commit deb87de
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 20 deletions.
118 changes: 100 additions & 18 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ kv-mem = ["surrealdb/kv-mem"]
stack-traces = ["dep:console_error_panic_hook"]

[dependencies]
surrealdb = { version = "2.1.1", default-features = false, features = ["http"] }
surrealdb = { git="https://github.com/surrealdb/surrealdb", default-features = false, features = ["http"] }
ciborium = "0.2.2"
console_error_panic_hook = { version = "0.1.7", optional = true }
fern = "0.6.2"
Expand Down
2 changes: 1 addition & 1 deletion src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl SurrealWasmEngine {
let in_data = cbor::req(data.to_vec()).map_err(|e| e.to_string())?;
let res = self
.0
.execute(Method::parse(in_data.method), in_data.params)
.execute_mutable(Method::parse(in_data.method), in_data.params)
.await
.map_err(|e| e.to_string())?;
println!("{:?}", res);
Expand Down

0 comments on commit deb87de

Please sign in to comment.