-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
E-mediumdb:postgresRelated to PostgreSQLRelated to PostgreSQLenhancementNew feature or requestNew feature or request
Description
Desired behavior:
fn do_something(
pool: PgPool,
except: HashSet<String>,
) -> impl TryStream<Ok = sqlx::postgres::PgRow, Error = sqlx::Error> {
sqlx::query(
"SELECT c0.target_id AS id FROM connections c0 \
WHERE NOT c0.target_id = ANY($1)",
)
.bind(except)
.fetch(&pool)
}Problem:
The Decode, Encode, and Type trait is not implemented for the HashSet collection, even though [E] in this case (String) could be encoded or decoded.
It should be possible to implement these interfaces for all iterable types, so perhaps that should be done instead (wherever impl IntoIter)?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
E-mediumdb:postgresRelated to PostgreSQLRelated to PostgreSQLenhancementNew feature or requestNew feature or request