Trait sqlite3::ResultRowAccess
[−]
[src]
pub trait ResultRowAccess { fn get<I: RowIndex + Display + Clone, T: FromSql>(&mut self, idx: I) -> T; fn get_opt<I: RowIndex + Display + Clone, T: FromSql>(
&mut self,
idx: I
) -> SqliteResult<T>; }
Access result columns of a row by name or numeric index.
Required Methods
fn get<I: RowIndex + Display + Clone, T: FromSql>(&mut self, idx: I) -> T
Get T
type result value from idx
th column of a row.
Panic
Panics if there is no such column or value.
fn get_opt<I: RowIndex + Display + Clone, T: FromSql>(
&mut self,
idx: I
) -> SqliteResult<T>
&mut self,
idx: I
) -> SqliteResult<T>
Try to get T
type result value from idx
th column of a row.
Implementors
impl<'res, 'row> ResultRowAccess for ResultRow<'res, 'row>