unreql 0.2.1

Well documented and easy to use RethinkDB Rust Driver
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use futures::TryStreamExt;
use serde_json::Value;
use unreql::r;

#[tokio::test]
async fn expr_query() -> unreql::Result<()> {
    let conn = r.connect(()).await?;
    let mut query = r.expr(r.expr("hello")).run(&conn);
    let val: Option<Value> = query.try_next().await?;
    assert_eq!(val, Some(Value::String("hello".into())));
    Ok(())
}