Skip to content

Commit

Permalink
feat: use surrealdb-2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
enmand committed Sep 30, 2024
1 parent fa44388 commit 1f19055
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 34 deletions.
101 changes: 75 additions & 26 deletions Cargo.lock

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

14 changes: 7 additions & 7 deletions crates/dwn-rs-stores/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ crate-type = ["cdylib", "rlib"]
[features]
default = ["surreal-lib"]
surrealdb = [
"surrealdb-beta/rustls",
"surrealdb-beta/kv-mem",
"surrealdb-beta/protocol-ws",
"surrealdb-beta/protocol-http",
"surrealdb/rustls",
"surrealdb/kv-mem",
"surrealdb/protocol-ws",
"surrealdb/protocol-http",
]
surreal-lib = ["surrealdb", "surrealdb-beta/kv-surrealkv"]
surreal-wasm = ["surrealdb", "surrealdb-beta/kv-indxdb"]
surreal-lib = ["surrealdb", "surrealdb/kv-surrealkv"]
surreal-wasm = ["surrealdb", "surrealdb/kv-indxdb"]
no-std = []


Expand All @@ -38,7 +38,7 @@ tracing = { version = "0.1.40", default-features = false, features = [
serde = { version = "1.0.183", features = ["derive"] }
serde_ipld_dagcbor = "0.6.0"
serde_with = "3.4.0"
surrealdb-beta = { version = "2.0.0", default-features = false, optional = true }
surrealdb = { version = "2.0.2", default-features = false, optional = true }

ulid = { version = "1.1.2", features = ["serde"] }
url = { version = "2.5.0", features = ["serde"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/dwn-rs-stores/src/surrealdb/data_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl DataStore for SurrealDB {
let mut len = 0;
while let Some(chunk) = chunks.next().await {
let u = db
.create::<Vec<DataChunk>>(CHUNK_TABLE)
.create::<Option<DataChunk>>(CHUNK_TABLE)
.content(DataChunk {
id: None,
data: chunk.clone(),
Expand Down

0 comments on commit 1f19055

Please sign in to comment.