From e5f8b9fb605191fbc0611120e5c892bb56de52c9 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Wed, 3 Sep 2025 19:31:20 +0800 Subject: [PATCH] feat: Make JsonbItemType public so users can compare Signed-off-by: Xuanwo --- src/core/databend/util.rs | 2 +- src/core/item.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/databend/util.rs b/src/core/databend/util.rs index fc63d8d..16eaf12 100644 --- a/src/core/databend/util.rs +++ b/src/core/databend/util.rs @@ -68,7 +68,7 @@ impl<'a> JsonbItem<'a> { } impl<'a> RawJsonb<'a> { - pub(crate) fn jsonb_item_type(&self) -> Result { + pub fn jsonb_item_type(&self) -> Result { let mut index = 0; let (header_type, header_len) = self.read_header(index)?; index += 4; diff --git a/src/core/item.rs b/src/core/item.rs index b410d01..18c7215 100644 --- a/src/core/item.rs +++ b/src/core/item.rs @@ -23,7 +23,7 @@ use crate::RawJsonb; /// The value type of JSONB data. #[derive(Debug, Clone, Copy)] -pub(crate) enum JsonbItemType { +pub enum JsonbItemType { /// The Null JSONB type. Null, /// The Boolean JSONB type.