EdgeDB Rust Client

EdgeDB maintains an client library for Rust. View the full documentation.

  1. #[tokio::main]
  2. async fn main() -> anyhow::Result<()> {
  3. let conn = edgedb_tokio::create_client().await?;
  4. let val = conn.query_required_single::<i64, _>(
  5. "SELECT 7*8",
  6. &(),
  7. ).await?;
  8. println!("7*8 is: {}", val);
  9. Ok(())
  10. }