mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 06:24:16 +00:00
Adding PgHasArrayType for &[u8;N] (#2634)
* Adding PgHasArrayType for &[u8;N] * cargo fmt --------- Co-authored-by: asdf <asdf@ethereum>
This commit is contained in:
parent
eae9484710
commit
7e7dded8af
1 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,12 @@ impl PgHasArrayType for &'_ [u8] {
|
|||
}
|
||||
}
|
||||
|
||||
impl<const N: usize> PgHasArrayType for &'_ [u8; N] {
|
||||
fn array_type_info() -> PgTypeInfo {
|
||||
PgTypeInfo::BYTEA_ARRAY
|
||||
}
|
||||
}
|
||||
|
||||
impl PgHasArrayType for Vec<u8> {
|
||||
fn array_type_info() -> PgTypeInfo {
|
||||
<[&[u8]] as Type<Postgres>>::type_info()
|
||||
|
|
Loading…
Reference in a new issue