EdgeDB Rust Binding for Tokio

Work in progress asynchronous bindings of EdgeDB for Tokio main loop.

Example Usage

```rust

[tokio::main]

async fn main() -> anyhow::Result<()> { let conn = edgedbtokio::createclient().await?; let val = conn.queryrequiredsingle::( "SELECT 78", &(), ).await?; println!("78 is: {}", val); Ok(()) } ```

Transaction Example

```rust

[tokio::main]

async fn main() -> anyhow::Result<()> { let conn = edgedbtokio::createclient().await?; let val = conn.transaction(|mut transaction| async move { transaction.queryrequiredsingle::( "SELECT (UPDATE Counter SET { value := .value + 1}).value LIMIT 1", &() ).await }).await?; println!("Counter: {val}"); Ok(()) } ```

More examples on github

License

Licensed under either of

at your option.