We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da7b7dc commit 9f08f49Copy full SHA for 9f08f49
libsql/src/rows.rs
@@ -130,6 +130,11 @@ impl Row {
130
self.inner.column_str(idx)
131
}
132
133
+ /// Get the count of columns in this set of rows.
134
+ pub fn column_count(&self) -> usize {
135
+ self.inner.column_count()
136
+ }
137
+
138
/// Fetch the name of the column at the provided index.
139
pub fn column_name(&self, idx: i32) -> Option<&str> {
140
self.inner.column_name(idx)
@@ -284,7 +289,6 @@ pub(crate) trait RowInner: fmt::Debug {
284
289
fn column_str(&self, idx: i32) -> Result<&str>;
285
290
fn column_name(&self, idx: i32) -> Option<&str>;
286
291
fn column_type(&self, idx: i32) -> Result<ValueType>;
287
- #[allow(dead_code)]
288
292
fn column_count(&self) -> usize;
293
294
0 commit comments