Expand description
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?;Modules§
Macros§
- par
- Specify parameters for parameterized statements.
Structs§
- Connect
Options - Connection builder
- Connection
- Rqlite connection object
- Node
- Node information
Enums§
- Rqlite
Error - Handle all errors for Connection and Cursor explicitly
- Scheme
- Enum to specify connection scheme when creating a connections
- Value
- Represents any valid JSON value.
Functions§
- to_
value - Convert a
Tintoserde_json::Valuewhich is an enum that can represent any valid JSON data.