3 releases
0.1.2 | Mar 13, 2024 |
---|---|
0.1.1 | Mar 13, 2024 |
0.1.0 | Mar 13, 2024 |
#1554 in Asynchronous
34 downloads per month
Used in sqlx-rqlite
38KB
807 lines
rqlite-ha421
a temporary fork of rqlite-rs
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
~13–24MB
~419K SLoC