You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a custom PgSql type is made, such as an enum, and a table column needs an array of that custom type, there's currently no way to be able to insert to that column.
error[E0277]: the trait bound `Vec<Categories>: Type<Postgres>` is not satisfied
...
= help: the following implementations were found:
<Vec<&[u8]> as Type<Postgres>>
<Vec<&str> as Type<Postgres>>
<Vec<(T1, T2)> as Type<Postgres>>
<Vec<(T1, T2, T3)> as Type<Postgres>>
and 30 others
= note: required because of the requirements on the impl of `Encode<'_, Postgres>` for `Vec<Categories>`
= note: required because of the requirements on the impl of `Encode<'_, Postgres>` for `&Vec<Categories>`
= note: required by `sqlx::Encode::size_hint`
And currently trying to manually implement this type is impossible due to having required fields are private.
If a custom PgSql type is made, such as an enum, and a table column needs an array of that custom type, there's currently no way to be able to insert to that column.
Reproduceable example:
This fails to compile with:
And currently trying to manually implement this type is impossible due to having required fields are private.
The text was updated successfully, but these errors were encountered: