[−][src]Trait c3p0_pool_sqlite::rusqlite::types::FromSql
A trait for types that can be created from a SQLite value.
Note that FromSql
and ToSql
are defined for most integral types, but
not u64
or usize
. This is intentional; SQLite returns integers as
signed 64-bit values, which cannot fully represent the range of these
types. Rusqlite would have to
decide how to handle negative values: return an error or reinterpret as a
very large postive numbers, neither of which
is guaranteed to be correct for everyone. Callers can work around this by
fetching values as i64 and then doing the interpretation themselves or by
defining a newtype and implementing FromSql
/ToSql
for it.
Required methods
fn column_result(value: ValueRef) -> Result<Self, FromSqlError>
Implementations on Foreign Types
impl FromSql for bool
[src]
fn column_result(value: ValueRef) -> Result<bool, FromSqlError>
[src]
impl FromSql for String
[src]
fn column_result(value: ValueRef) -> Result<String, FromSqlError>
[src]
impl FromSql for Value
[src]
Deserialize text/blob to JSON Value
.
fn column_result(value: ValueRef) -> Result<Value, FromSqlError>
[src]
impl FromSql for isize
[src]
fn column_result(value: ValueRef) -> Result<isize, FromSqlError>
[src]
impl FromSql for Timespec
[src]
fn column_result(value: ValueRef) -> Result<Timespec, FromSqlError>
[src]
impl FromSql for u8
[src]
fn column_result(value: ValueRef) -> Result<u8, FromSqlError>
[src]
impl FromSql for u32
[src]
fn column_result(value: ValueRef) -> Result<u32, FromSqlError>
[src]
impl FromSql for i8
[src]
fn column_result(value: ValueRef) -> Result<i8, FromSqlError>
[src]
impl FromSql for i32
[src]
fn column_result(value: ValueRef) -> Result<i32, FromSqlError>
[src]
impl FromSql for i16
[src]
fn column_result(value: ValueRef) -> Result<i16, FromSqlError>
[src]
impl FromSql for f64
[src]
fn column_result(value: ValueRef) -> Result<f64, FromSqlError>
[src]
impl FromSql for i64
[src]
fn column_result(value: ValueRef) -> Result<i64, FromSqlError>
[src]
impl FromSql for Vec<u8>
[src]
fn column_result(value: ValueRef) -> Result<Vec<u8>, FromSqlError>
[src]
impl FromSql for u16
[src]
fn column_result(value: ValueRef) -> Result<u16, FromSqlError>
[src]
impl<T> FromSql for Option<T> where
T: FromSql,
[src]
T: FromSql,