We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eae9484 commit 7e7ddedCopy full SHA for 7e7dded
sqlx-postgres/src/types/bytes.rs
@@ -16,6 +16,12 @@ impl PgHasArrayType for &'_ [u8] {
16
}
17
18
19
+impl<const N: usize> PgHasArrayType for &'_ [u8; N] {
20
+ fn array_type_info() -> PgTypeInfo {
21
+ PgTypeInfo::BYTEA_ARRAY
22
+ }
23
+}
24
+
25
impl PgHasArrayType for Vec<u8> {
26
fn array_type_info() -> PgTypeInfo {
27
<[&[u8]] as Type<Postgres>>::type_info()
0 commit comments