Crates.io | edgedb-client |
lib.rs | edgedb-client |
version | 0.3.0 |
source | src |
created_at | 2020-10-23 15:53:11.652731 |
updated_at | 2022-04-25 16:24:35.670006 |
description | EdgeDB database client implementation based on async-std. |
homepage | |
repository | |
max_upload_size | |
id | 304725 |
size | 172,096 |
Work in progress asynchronous bindings of EdgeDB for async-std main loop.
Note: development of these bindings are stalled. Use edgedb-tokio instead.
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
Licensed under either of
at your option.