Trait sqlite3::types::FromSql
[−]
[src]
pub trait FromSql: Sized { fn from_sql(row: &ResultRow, col: ColIx) -> SqliteResult<Self>; }
A trait for result values from a query.
inspired by sfackler's FromSql (and some haskell bindings?)
- TODO: many more implementors, including Option
Required Methods
fn from_sql(row: &ResultRow, col: ColIx) -> SqliteResult<Self>
Try to extract a Self
type value from the col
th colum of a ResultRow
.