mirror of
https://github.com/isar/rusqlite.git
synced 2025-09-15 20:22:19 +08:00
Change VTabCursor::filter signature
This commit is contained in:
@@ -21,10 +21,11 @@ impl ToSql for Value {
|
||||
impl FromSql for Value {
|
||||
fn column_result(value: ValueRef) -> Result<Self> {
|
||||
match value {
|
||||
ValueRef::Text(ref s) => serde_json::from_str(s),
|
||||
ValueRef::Blob(ref b) => serde_json::from_slice(b),
|
||||
_ => return Err(Error::InvalidColumnType),
|
||||
}.map_err(|err| Error::FromSqlConversionFailure(Box::new(err)))
|
||||
ValueRef::Text(ref s) => serde_json::from_str(s),
|
||||
ValueRef::Blob(ref b) => serde_json::from_slice(b),
|
||||
_ => return Err(Error::InvalidColumnType),
|
||||
}
|
||||
.map_err(|err| Error::FromSqlConversionFailure(Box::new(err)))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user