diff --git a/plume-models/src/.lib.rs.swp b/plume-models/src/.lib.rs.swp new file mode 100644 index 0000000..3d353ce Binary files /dev/null and b/plume-models/src/.lib.rs.swp differ diff --git a/plume-models/src/safe_string.rs b/plume-models/src/safe_string.rs index ce813d4..26c7a21 100644 --- a/plume-models/src/safe_string.rs +++ b/plume-models/src/safe_string.rs @@ -85,6 +85,7 @@ impl<'de> Deserialize<'de> for SafeString { } } +#[cfg(all(feature = "postgres", not(feature = "sqlite")))] impl Queryable for SafeString { type Row = String; fn build(value: Self::Row) -> Self { @@ -92,6 +93,7 @@ impl Queryable for SafeString { } } +#[cfg(all(feature = "sqlite", not(feature = "postgres")))] impl Queryable for SafeString { type Row = String; fn build(value: Self::Row) -> Self { @@ -99,6 +101,7 @@ impl Queryable for SafeString { } } + impl ToSql for SafeString where DB: diesel::backend::Backend,