Skip to content

Commit

Permalink
chore: use ssi as isolation level in skv memory
Browse files Browse the repository at this point in the history
  • Loading branch information
arriqaaq committed Apr 18, 2024
1 parent 2d6a523 commit 6497136
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion 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 @@ -8,7 +8,7 @@ authors = ["Tobie Morgan Hitchcock <[email protected]>"]

[features]
# Public features
default = ["storage-mem", "storage-rocksdb", "scripting", "http"]
default = ["storage-mem", "storage-surrealkv", "scripting", "http"]
storage-mem = ["surrealdb/kv-mem"]
storage-rocksdb = ["surrealdb/kv-rocksdb"]
storage-speedb = ["surrealdb/kv-speedb"]
Expand Down
4 changes: 2 additions & 2 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ kv-fdb = ["tokio/time"]

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
features = ["kv-mem", "kv-rocksdb", "http", "scripting"]
features = ["kv-mem", "kv-surrealkv", "http", "scripting"]
targets = []

[dependencies]
Expand Down Expand Up @@ -135,7 +135,7 @@ sha2 = "0.10.8"
snap = "1.1.0"
speedb = { version = "0.0.4", features = ["lz4", "snappy"], optional = true }
storekey = "0.5.0"
surrealkv = { git = "https://github.com/surrealdb/surrealkv.git", branch = "feat/in-memory-mode", optional = true }
surrealkv = { git = "https://github.com/surrealdb/surrealkv.git", rev = "a7ae009a7103f815825b715ff7210006d4f70d32", optional = true }
surrealml = { version = "0.1.1", optional = true, package = "surrealml-core" }
tempfile = { version = "3.10.1", optional = true }
thiserror = "1.0.50"
Expand Down
8 changes: 4 additions & 4 deletions lib/tests/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ async fn select_table() {
assert_eq!(users.len(), 3);
}

#[test_log::test(tokio::test)]
#[test_log::test(tokio::test(flavor = "multi_thread"))]
async fn select_record_id() {
let (permit, db) = new_db().await;
db.use_ns(NS).use_db(Ulid::new().to_string()).await.unwrap();
Expand All @@ -554,7 +554,7 @@ async fn select_record_id() {
assert_eq!(value.record(), thing("user:john").ok());
}

#[test_log::test(tokio::test)]
#[test_log::test(tokio::test(flavor = "multi_thread"))]
async fn select_record_ranges() {
let (permit, db) = new_db().await;
db.use_ns(NS).use_db(Ulid::new().to_string()).await.unwrap();
Expand Down Expand Up @@ -590,7 +590,7 @@ async fn select_record_ranges() {
assert_eq!(convert(users), vec!["john"]);
}

#[test_log::test(tokio::test)]
#[test_log::test(tokio::test(flavor = "multi_thread"))]
async fn select_records_order_by_start_limit() {
let (permit, db) = new_db().await;
db.use_ns(NS).use_db(Ulid::new().to_string()).await.unwrap();
Expand Down Expand Up @@ -626,7 +626,7 @@ async fn select_records_order_by_start_limit() {
check_start_limit(response, vec!["Zoey", "John", "Jane", "Amos"]);
}

#[test_log::test(tokio::test)]
#[test_log::test(tokio::test(flavor = "multi_thread"))]
async fn select_records_order_by() {
let (permit, db) = new_db().await;
db.use_ns(NS).use_db(Ulid::new().to_string()).await.unwrap();
Expand Down

0 comments on commit 6497136

Please sign in to comment.