aboutsummaryrefslogtreecommitdiffstats
path: root/log_db/src/common.rs
diff options
context:
space:
mode:
Diffstat (limited to 'log_db/src/common.rs')
-rw-r--r--log_db/src/common.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/log_db/src/common.rs b/log_db/src/common.rs
index a3ff5c2..4f5751d 100644
--- a/log_db/src/common.rs
+++ b/log_db/src/common.rs
@@ -242,6 +242,7 @@ impl Display for WriteDurability {
#[derive(Debug, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]
pub enum IndexableValue {
+ Null,
Int(i64),
String(String),
}
@@ -393,6 +394,7 @@ impl Value {
pub fn as_indexable(&self) -> Option<IndexableValue> {
match self {
+ Value::Null => Some(IndexableValue::Null),
Value::Int(i) => Some(IndexableValue::Int(*i)),
Value::String(s) => Some(IndexableValue::String(s.clone())),
_ => None,