mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 08:39:44 +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:
committed by
GitHub
parent
eae9484710
commit
7e7dded8af
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user