Cargo fmt
This commit is contained in:
parent
08d07b6373
commit
8cd8d4bc90
@ -26,8 +26,13 @@ pub async fn insert_property(conn: &PgPool, property: Property) -> Result<Proper
|
||||
.await
|
||||
}
|
||||
|
||||
pub async fn get_property_with_id(conn: &PgPool, property_id: &Uuid) -> Result<Option<Property>, sqlx::Error> {
|
||||
sqlx::query_file_as!(Property, "sql/property/get_with_id.sql", property_id).fetch_optional(conn).await
|
||||
pub async fn get_property_with_id(
|
||||
conn: &PgPool,
|
||||
property_id: &Uuid,
|
||||
) -> Result<Option<Property>, sqlx::Error> {
|
||||
sqlx::query_file_as!(Property, "sql/property/get_with_id.sql", property_id)
|
||||
.fetch_optional(conn)
|
||||
.await
|
||||
}
|
||||
|
||||
pub async fn update_property(conn: &PgPool, property: Property) -> Result<Property, sqlx::Error> {
|
||||
@ -52,4 +57,4 @@ pub async fn update_property(conn: &PgPool, property: Property) -> Result<Proper
|
||||
)
|
||||
.fetch_one(conn)
|
||||
.await
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user