Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump redb #40

Merged
merged 1 commit into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ rocksdb = { version = "0.20", optional = true }
sled = { version = "0.34", optional = true }
rmp-serde = "1.1"
directories = "5.0"
redb = { version = "1.0.0", optional = true }
redb = { version = "1.0.1", optional = true }

[dev-dependencies]
bevy = { version = "0.10", default-features = false }
Expand Down
28 changes: 14 additions & 14 deletions src/redb_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ pub use ReDbStore as InnerStore;
#[derive(thiserror::Error, Debug)]
pub enum GetError {
/// An internal storage error from the `redb` crate
#[error("RedDbStorageError error")]
RedDbStorageError(#[from] redb::StorageError),
#[error("ReDbStorageError error")]
ReDbStorageError(#[from] redb::StorageError),
/// An internal transaction error from the `redb` crate
#[error("RedDbTransactionError error")]
RedDbTransactionError(#[from] redb::TransactionError),
#[error("ReDbTransactionError error")]
ReDbTransactionError(#[from] redb::TransactionError),
/// An internal table error from the `redb` crate
#[error("RedDbTableError error")]
RedDbTableError(#[from] redb::TableError),
#[error("ReDbTableError error")]
ReDbTableError(#[from] redb::TableError),
/// The value for the given key was not found
#[error("No value found for the given key")]
NotFound,
Expand All @@ -37,17 +37,17 @@ pub enum GetError {
#[derive(thiserror::Error, Debug)]
pub enum SetError {
/// An internal commit error from the `redb` crate
#[error("RedDbCommitError error")]
RedDbCommitError(#[from] redb::CommitError),
#[error("ReDbCommitError error")]
ReDbCommitError(#[from] redb::CommitError),
/// An internal storage error from the `redb` crate
#[error("RedDbStorageError error")]
RedDbStorageError(#[from] redb::StorageError),
#[error("ReDbStorageError error")]
ReDbStorageError(#[from] redb::StorageError),
/// An internal transaction error from the `redb` crate
#[error("RedDbTransactionError error")]
RedDbTransactionError(#[from] redb::TransactionError),
#[error("ReDbTransactionError error")]
ReDbTransactionError(#[from] redb::TransactionError),
/// An internal table error from the `redb` crate
#[error("RedDbTableError error")]
RedDbTableError(#[from] redb::TableError),
#[error("ReDbTableError error")]
ReDbTableError(#[from] redb::TableError),
/// Error when serializing the value
#[error("MessagePack serialization error")]
MessagePack(#[from] rmp_serde::encode::Error),
Expand Down