(ex: &mut PgConnection, quote: &Quote)
| 464 | |
| 465 | #[instrument(skip_all)] |
| 466 | pub async fn insert_quote(ex: &mut PgConnection, quote: &Quote) -> Result<(), sqlx::Error> { |
| 467 | sqlx::query(INSERT_ORDER_QUOTES_QUERY) |
| 468 | .bind(quote.order_uid) |
| 469 | .bind(quote.gas_amount) |
| 470 | .bind(quote.gas_price) |
| 471 | .bind(quote.sell_token_price) |
| 472 | .bind("e.sell_amount) |
| 473 | .bind("e.buy_amount) |
| 474 | .bind(quote.solver) |
| 475 | .bind(quote.verified) |
| 476 | .bind("e.metadata) |
| 477 | .bind(quote.quote_id) |
| 478 | .execute(ex) |
| 479 | .await?; |
| 480 | Ok(()) |
| 481 | } |
| 482 | |
| 483 | #[instrument(skip_all)] |
| 484 | pub async fn read_quote( |
no test coverage detected