Skip to content

Commit

Permalink
add support for &[u8] params (as bytea)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkusa committed Jun 12, 2024
1 parent e7afeeb commit d031912
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions postgres/src/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ where
impl AsSqlType for Vec<u8> {
type SqlType = Bytea;
}
impl<'a> AsSqlType for &'a [u8] {
type SqlType = Bytea;
}

impl AsSqlType for Vec<Vec<u8>> {
type SqlType = Self;
Expand Down

0 comments on commit d031912

Please sign in to comment.