Skip to content

Commit

Permalink
feat: atomic sum on v8 values
Browse files Browse the repository at this point in the history
  • Loading branch information
losfair committed Dec 14, 2023
1 parent 3ef711a commit 1bb2274
Show file tree
Hide file tree
Showing 13 changed files with 709 additions and 12 deletions.
24 changes: 24 additions & 0 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ thiserror = "1"
tokio = { version = "1.33.0", features = ["full"] }
tokio-util = "0.7"
url = "2"
uuid = { version = "1.4.1", features = ["v4", "serde"] }
uuid = { version = "1.4.1", features = ["v4", "serde"] }
v8_valueserializer = { git = "https://github.com/denoland/v8_valueserializer", rev = "57891ee121a069a5b612a45e107809434473cf81" }
4 changes: 3 additions & 1 deletion denokv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ uuid.workspace = true

[dev-dependencies]
denokv_remote.workspace = true
num-bigint.workspace = true
tempfile.workspace = true
reqwest.workspace = true
reqwest.workspace = true
v8_valueserializer.workspace = true
3 changes: 3 additions & 0 deletions denokv/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,9 @@ impl From<SqliteBackendError> for ApiError {
ApiError::UnknownValueEncoding(encoding)
}
SqliteBackendError::TypeMismatch(msg) => ApiError::TypeMismatch(msg),
x @ SqliteBackendError::SumOutOfRange => {
ApiError::TypeMismatch(x.to_string())
}
}
}
}
Expand Down
Loading

0 comments on commit 1bb2274

Please sign in to comment.