rqlite_ha421/lib.rs
1//! An asynchronous client library for rqlite.
2//!
3//! This library uses tokio for sockets and hyper to handle http requests.
4//!
5//! Currently there is no transaction support.
6//! ```
7//! use rqlite::ConnectOptions;
8//!
9//! let mut conn = ConnectOptions::new("my.node.local", 4001)
10//! .scheme(Scheme::HTTPS)
11//! .user("root")
12//! .pass("root")
13//! .connect().await?;
14//! conn.execute("SELECT * FROM foo where id = ?;", par!(1)).await?;
15//! ```
16
17mod connect;
18mod cursor;
19mod error;
20mod row;
21pub mod types;
22
23pub use connect::{ConnectOptions, Connection, Node, Scheme};
24pub use error::RqliteError;
25pub use serde_json::{to_value, Value};