diff options
author | Alex Auvolat <alex@adnab.me> | 2022-01-03 18:03:12 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-01-04 12:52:46 +0100 |
commit | ba7f268b990cd17c5d20bf9e0eb6ff77d30fe845 (patch) | |
tree | 96cf583c618ab778130b4923e05d62bfb76dd224 /src/table | |
parent | de37658b94d6ac54721e18316dd8dddf50589afb (diff) | |
download | garage-ba7f268b990cd17c5d20bf9e0eb6ff77d30fe845.tar.gz garage-ba7f268b990cd17c5d20bf9e0eb6ff77d30fe845.zip |
Rename and change query filters
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/util.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/table/util.rs b/src/table/util.rs index 043a457c..2a5c3afe 100644 --- a/src/table/util.rs +++ b/src/table/util.rs @@ -19,7 +19,7 @@ impl PartitionKey for EmptyKey { #[derive(Clone, Copy, Debug, Serialize, Deserialize)] pub enum DeletedFilter { - All, + Any, Deleted, NotDeleted, } @@ -27,7 +27,7 @@ pub enum DeletedFilter { impl DeletedFilter { pub fn apply(&self, deleted: bool) -> bool { match self { - DeletedFilter::All => true, + DeletedFilter::Any => true, DeletedFilter::Deleted => deleted, DeletedFilter::NotDeleted => !deleted, } |