mirror of
https://github.com/isar/rusqlite.git
synced 2026-01-31 00:52:24 +08:00
Add ToSql impl for bool.
This commit is contained in:
@@ -24,6 +24,12 @@ impl From<Null> for Value {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<bool> for Value {
|
||||
fn from(i: bool) -> Value {
|
||||
Value::Integer(i as i64)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<i32> for Value {
|
||||
fn from(i: i32) -> Value {
|
||||
Value::Integer(i as i64)
|
||||
|
||||
Reference in New Issue
Block a user