(
ex: &mut PgConnection,
id: &OrderUid,
)
| 430 | |
| 431 | #[instrument(skip_all)] |
| 432 | pub async fn read_quote( |
| 433 | ex: &mut PgConnection, |
| 434 | id: &OrderUid, |
| 435 | ) -> Result<Option<Quote>, sqlx::Error> { |
| 436 | let query = r#" |
| 437 | SELECT * FROM order_quotes |
| 438 | WHERE order_uid = $1 |
| 439 | "#; |
| 440 | sqlx::query_as(query).bind(id).fetch_optional(ex).await |
| 441 | } |
| 442 | |
| 443 | #[instrument(skip_all)] |
| 444 | pub async fn read_quotes( |
no outgoing calls