3 releases

0.1.2 Mar 13, 2024
0.1.1 Mar 13, 2024
0.1.0 Mar 13, 2024

#863 in Asynchronous

Download history 308/week @ 2024-03-13 10/week @ 2024-03-20 7/week @ 2024-03-27 16/week @ 2024-04-03

341 downloads per month
Used in sqlx-rqlite

Apache-2.0

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–25MB
~417K SLoC