Skip to content

Commit 4662a2c

Browse files
authored
feat: Make JsonbItemType public so users can compare (#94)
Signed-off-by: Xuanwo <[email protected]>
1 parent 591e85b commit 4662a2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/databend/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl<'a> JsonbItem<'a> {
6868
}
6969

7070
impl<'a> RawJsonb<'a> {
71-
pub(crate) fn jsonb_item_type(&self) -> Result<JsonbItemType> {
71+
pub fn jsonb_item_type(&self) -> Result<JsonbItemType> {
7272
let mut index = 0;
7373
let (header_type, header_len) = self.read_header(index)?;
7474
index += 4;

src/core/item.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use crate::RawJsonb;
2323

2424
/// The value type of JSONB data.
2525
#[derive(Debug, Clone, Copy)]
26-
pub(crate) enum JsonbItemType {
26+
pub enum JsonbItemType {
2727
/// The Null JSONB type.
2828
Null,
2929
/// The Boolean JSONB type.

0 commit comments

Comments
 (0)