From 8f366e98d59bcdbeb542769ed2164cf58665868b Mon Sep 17 00:00:00 2001 From: Peter Hayman Date: Thu, 1 May 2025 15:31:38 +1000 Subject: [PATCH] add Row::column_count --- bindings/rust/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bindings/rust/src/lib.rs b/bindings/rust/src/lib.rs index 783012c5d..6c04c231a 100644 --- a/bindings/rust/src/lib.rs +++ b/bindings/rust/src/lib.rs @@ -297,4 +297,8 @@ impl Row { limbo_core::OwnedValue::Blob(items) => Ok(Value::Blob(items.to_vec())), } } + + pub fn column_count(&self) -> usize { + self.values.len() + } }