(ex: &mut PgConnection, quote: &Quote)
| 413 | |
| 414 | #[instrument(skip_all)] |
| 415 | pub async fn insert_quote(ex: &mut PgConnection, quote: &Quote) -> Result<(), sqlx::Error> { |
| 416 | sqlx::query(INSERT_ORDER_QUOTES_QUERY) |
| 417 | .bind(quote.order_uid) |
| 418 | .bind(quote.gas_amount) |
| 419 | .bind(quote.gas_price) |
| 420 | .bind(quote.sell_token_price) |
| 421 | .bind("e.sell_amount) |
| 422 | .bind("e.buy_amount) |
| 423 | .bind(quote.solver) |
| 424 | .bind(quote.verified) |
| 425 | .bind("e.metadata) |
| 426 | .execute(ex) |
| 427 | .await?; |
| 428 | Ok(()) |
| 429 | } |
| 430 | |
| 431 | #[instrument(skip_all)] |
| 432 | pub async fn read_quote( |
no test coverage detected