3 releases (breaking)
0.3.0 | Apr 25, 2022 |
---|---|
0.2.0 | Sep 30, 2021 |
0.1.0 | Oct 23, 2020 |
#2725 in Database interfaces
130KB
3K
SLoC
EdgeDB Rust Binding for Async-Std
Work in progress asynchronous bindings of EdgeDB for async-std main loop.
Note: development of these bindings are stalled. Use edgedb-tokio instead.
Example Usage
use async_std::task;
fn main() -> anyhow::Result<()> {
let val: i64 = task::block_on(async {
let pool = edgedb_client::connect().await?;
pool.query("SELECT 7*8", &()).await
})?;
println!("7*8 is: {}", val);
Ok(())
}
More examples on github
License
Licensed under either of
- Apache License, Version 2.0, (./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (./LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Dependencies
~23–38MB
~700K SLoC