mirror of
https://github.com/isar/rusqlite.git
synced 2025-11-02 14:58:56 +08:00
add support for Uuid
This commit is contained in:
@@ -48,6 +48,13 @@ impl From<i128> for Value {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "uuid")]
|
||||
impl From<uuid::Uuid> for Value {
|
||||
fn from(id: uuid::Uuid) -> Value {
|
||||
Value::Blob(id.as_bytes().to_vec())
|
||||
}
|
||||
}
|
||||
|
||||
macro_rules! from_i64(
|
||||
($t:ty) => (
|
||||
impl From<$t> for Value {
|
||||
|
||||
Reference in New Issue
Block a user