We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d0dddf commit b607251Copy full SHA for b607251
sqlx-postgres/src/types/array.rs
@@ -55,6 +55,19 @@ pub trait PgHasArrayType {
55
}
56
57
58
+impl<T> PgHasArrayType for &T
59
+where
60
+ T: PgHasArrayType,
61
+{
62
+ fn array_type_info() -> PgTypeInfo {
63
+ T::array_type_info()
64
+ }
65
+
66
+ fn array_compatible(ty: &PgTypeInfo) -> bool {
67
+ T::array_compatible(ty)
68
69
+}
70
71
impl<T> PgHasArrayType for Option<T>
72
where
73
T: PgHasArrayType,
sqlx-postgres/src/types/bytes.rs
@@ -16,12 +16,6 @@ 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 Box<[u8]> {
26
fn array_type_info() -> PgTypeInfo {
27
<[&[u8]] as Type<Postgres>>::type_info()
0 commit comments