Merge branch 'master' of https://github.com/jgallagher/rusqlite into functions

This commit is contained in:
Gwenael Treguier
2015-12-06 21:33:21 +01:00
12 changed files with 699 additions and 80 deletions

View File

@@ -106,7 +106,7 @@ impl ToResult for Null {
// sqlite3_result_value
/// A trait for types that can be created from a SQLite function parameter value.
pub trait FromValue {
pub trait FromValue: Sized {
unsafe fn parameter_value(v: *mut sqlite3_value) -> SqliteResult<Self>;
/// FromValue types can implement this method and use sqlite3_value_type to check that
@@ -327,4 +327,4 @@ mod test {
assert_eq!(true, result.unwrap());
}
}
}