1 unstable release

0.1.0 Nov 21, 2021

#1856 in Asynchronous

Apache-2.0

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

~5–18MB
~230K SLoC