rqlite_client 0.1.0

rqlite database client with optional extra convenience
Documentation
#![allow(missing_docs, unused_crate_dependencies)]
#![cfg(all(feature = "monitor", feature = "ureq"))]

use rqlite_client::monitor::response;
use test_rqlited::TestRqlited;

#[test]
fn monitor_status_test() {
    TestRqlited::get_or_init().run_test(|c| {
        let q = c.monitor();

        let r = q.request_run();

        assert!(r.is_ok(), "response error: {}", r.err().unwrap());
        let r = response::Status::from(r.unwrap());

        let v = r.0.as_object().unwrap();
        let cluster = v["cluster"].as_object().unwrap();

        assert_eq!(cluster["api_addr"], "localhost:4001");
    });
}