Crate rqlite_ha421

source ·
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§

  • Specify parameters for parameterized statements.

Structs§

Enums§

  • Handle all errors for Connection and Cursor explicitly
  • Enum to specify connection scheme when creating a connections
  • Represents any valid JSON value.

Functions§

  • Convert a T into serde_json::Value which is an enum that can represent any valid JSON data.