diff --git a/src/types/to_sql.rs b/src/types/to_sql.rs index 9543a49..21236a1 100644 --- a/src/types/to_sql.rs +++ b/src/types/to_sql.rs @@ -94,12 +94,24 @@ impl ToSql for String { } } +impl ToSql for str { + fn to_sql(&self) -> Result { + Ok(ToSqlOutput::from(self)) + } +} + impl ToSql for Vec { fn to_sql(&self) -> Result { Ok(ToSqlOutput::from(self.as_slice())) } } +impl ToSql for [u8] { + fn to_sql(&self) -> Result { + Ok(ToSqlOutput::from(self)) + } +} + impl ToSql for Value { fn to_sql(&self) -> Result { Ok(ToSqlOutput::from(self))