(ex: &mut PgConnection, quote: &Quote)
| 422 | |
| 423 | #[instrument(skip_all)] |
| 424 | pub async fn insert_quote(ex: &mut PgConnection, quote: &Quote) -> Result<(), sqlx::Error> { |
| 425 | sqlx::query(INSERT_ORDER_QUOTES_QUERY) |
| 426 | .bind(quote.order_uid) |
| 427 | .bind(quote.gas_amount) |
| 428 | .bind(quote.gas_price) |
| 429 | .bind(quote.sell_token_price) |
| 430 | .bind("e.sell_amount) |
| 431 | .bind("e.buy_amount) |
| 432 | .bind(quote.solver) |
| 433 | .bind(quote.verified) |
| 434 | .bind("e.metadata) |
| 435 | .bind(quote.auction_id) |
| 436 | .execute(ex) |
| 437 | .await?; |
| 438 | Ok(()) |
| 439 | } |
| 440 | |
| 441 | #[instrument(skip_all)] |
| 442 | pub async fn read_quote( |
no test coverage detected