1 unstable release
0.1.0 | Nov 21, 2021 |
---|
#57 in #pass
26KB
440 lines
rqlite-rs
An asynchronous rqlite client for rust
lib.rs
:
An asynchronous client library for rqlite.
This library uses tokio for sockets and hyper to handle http requests.
Currently there is no transaction support.
use rqlite::ConnectOptions;
let mut conn = ConnectOptions::new("my.node.local", 4001)
.scheme(Scheme::HTTPS)
.user("root")
.pass("root")
.connect().await?;
conn.execute("SELECT * FROM foo where id = ?;", par!(1)).await?;
Dependencies
~6–16MB
~229K SLoC