Skip to content

Commit

Permalink
feat: atomic sum on v8 values (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
losfair authored Dec 21, 2023
1 parent 43628b4 commit e6a50cf
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 @@ -47,4 +47,5 @@ tokio = { version = "1.33.0", features = ["full"] }
tokio-stream = "0.1"
tokio-util = "0.7"
url = "2"
uuid = { version = "1.4.1", features = ["v4", "serde"] }
uuid = { version = "1.4.1", features = ["v4", "serde"] }
v8_valueserializer = "0.1.1"
4 changes: 3 additions & 1 deletion denokv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,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 @@ -629,6 +629,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 e6a50cf

Please sign in to comment.