From 012478d8b753e730c37819404aa0f522e0e40587 Mon Sep 17 00:00:00 2001 From: Siddhant Date: Mon, 10 May 2021 15:18:25 +0700 Subject: [PATCH] Added support for PgMoney type in sqlx macros --- sqlx-macros/src/database/postgres.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sqlx-macros/src/database/postgres.rs b/sqlx-macros/src/database/postgres.rs index 35f621e624..05f0a88bd6 100644 --- a/sqlx-macros/src/database/postgres.rs +++ b/sqlx-macros/src/database/postgres.rs @@ -16,6 +16,8 @@ impl_database_ext! { sqlx::postgres::types::PgInterval, + sqlx::postgres::types::PgMoney, + #[cfg(feature = "uuid")] sqlx::types::Uuid, @@ -76,6 +78,7 @@ impl_database_ext! { Vec | &[i64], Vec | &[f32], Vec | &[f64], + Vec | &[sqlx::postgres::types::PgMoney], #[cfg(feature = "uuid")] Vec | &[sqlx::types::Uuid],