mirror of
https://github.com/isar/rusqlite.git
synced 2025-09-16 04:32:19 +08:00
Merge pull request #475 from gwenn/db-config
Support for sqlite3_db_config #468
This commit is contained in:
14
src/row.rs
14
src/row.rs
@@ -139,11 +139,11 @@ impl<'a, 'stmt> Row<'a, 'stmt> {
|
||||
/// Panics if calling `row.get_checked(idx)` would return an error,
|
||||
/// including:
|
||||
///
|
||||
/// * If the underlying SQLite column type is not a valid type as a
|
||||
/// source for `T`
|
||||
/// * If the underlying SQLite integral value is outside the range
|
||||
/// representable by `T`
|
||||
/// * If `idx` is outside the range of columns in the returned query
|
||||
/// * If the underlying SQLite column type is not a valid type as a
|
||||
/// source for `T`
|
||||
/// * If the underlying SQLite integral value is outside the range
|
||||
/// representable by `T`
|
||||
/// * If `idx` is outside the range of columns in the returned query
|
||||
pub fn get<I: RowIndex, T: FromSql>(&self, idx: I) -> T {
|
||||
self.get_checked(idx).unwrap()
|
||||
}
|
||||
@@ -215,8 +215,8 @@ impl<'a, 'stmt> Row<'a, 'stmt> {
|
||||
/// Panics if calling `row.get_raw_checked(idx)` would return an error,
|
||||
/// including:
|
||||
///
|
||||
/// * If `idx` is outside the range of columns in the returned query.
|
||||
/// * If `idx` is not a valid column name for this row.
|
||||
/// * If `idx` is outside the range of columns in the returned query.
|
||||
/// * If `idx` is not a valid column name for this row.
|
||||
pub fn get_raw<I: RowIndex>(&self, idx: I) -> ValueRef<'a> {
|
||||
self.get_raw_checked(idx).unwrap()
|
||||
}
|
||||
|
Reference in New Issue
Block a user