Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow opt-out of PgHasArrayType with #[derive(sqlx::Type)] #2619

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

abonander
Copy link
Collaborator

closes #2611

@abonander abonander merged commit 1d1095e into main Jul 14, 2023
57 checks passed
@abonander abonander deleted the ab/issue-2611 branch July 14, 2023 23:16
@mrl5
Copy link
Contributor

mrl5 commented Jul 15, 2023

thank you very much :)

upgrading to sqlx 0.7.1 and

 #[derive(PartialEq)]
 #[cfg_attr(feature = "sqlx", derive(sqlx::Type))]
-#[cfg_attr(feature = "sqlx", sqlx(transparent))]
+#[cfg_attr(feature = "sqlx", sqlx(transparent, no_pg_array))]
 pub struct ScriptHashes(pub Vec<i64>);

solved the issue

@mrl5

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PgHasArrayType is not implemented for Vec<i64>
3 participants