mirror of
https://github.com/isar/rusqlite.git
synced 2025-09-16 04:32:19 +08:00
@@ -7,7 +7,7 @@ use crate::types::{FromSql, FromSqlError, ValueRef};
|
||||
|
||||
/// An handle for the resulting rows of a query.
|
||||
pub struct Rows<'stmt> {
|
||||
stmt: Option<&'stmt Statement<'stmt>>,
|
||||
pub(crate) stmt: Option<&'stmt Statement<'stmt>>,
|
||||
row: Option<Row<'stmt>>,
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@ impl<'stmt> FallibleStreamingIterator for Rows<'stmt> {
|
||||
|
||||
/// A single result row of a query.
|
||||
pub struct Row<'stmt> {
|
||||
stmt: &'stmt Statement<'stmt>,
|
||||
pub(crate) stmt: &'stmt Statement<'stmt>,
|
||||
}
|
||||
|
||||
impl<'stmt> Row<'stmt> {
|
||||
@@ -275,11 +275,6 @@ impl<'stmt> Row<'stmt> {
|
||||
pub fn get_raw<I: RowIndex>(&self, idx: I) -> ValueRef<'_> {
|
||||
self.get_raw_checked(idx).unwrap()
|
||||
}
|
||||
|
||||
/// Return the number of columns in the current row.
|
||||
pub fn column_count(&self) -> usize {
|
||||
self.stmt.column_count()
|
||||
}
|
||||
}
|
||||
|
||||
/// A trait implemented by types that can index into columns of a row.
|
||||
|
Reference in New Issue
Block a user