Rust

The adapter writes SQL with named placeholders (:_uid) and binds values with a PDO parameter type. The sqlite driver prepares the statement as it is (sqlite3_prepare_v2: SQLite reads :name placeholders itself, and text after the first statement is ignored) and binds each value when the statement executes, so Pdo does the same over rusqlite:

Contents

use utopia_database::adapter::sqlite::pdo::Executed;
Rust
pub struct Executed

A statement's result: what execute() returned, the rows and the row count.

use utopia_database::adapter::sqlite::pdo::Pdo;
Rust
pub struct Pdo

The PDO handle: one SQLite database file.

use utopia_database::adapter::sqlite::pdo::PdoError;
Rust
pub struct PdoError

A driver error (PDOException): its SQLSTATE, SQLite's result code (errorInfo[1]) and its message.

use utopia_database::adapter::sqlite::pdo::Statement;
Rust
pub struct Statement

A prepared statement: SQL with named placeholders and bound values.

use utopia_database::adapter::sqlite::pdo::ParamType;
Rust
pub enum ParamType

A PDO parameter type (PDO::PARAM_*).

use utopia_database::adapter::sqlite::pdo::PdoFailure;
Rust
pub enum PdoFailure

A failed execute(): a driver error, or another exception (a value that cannot be converted to a string).

Also implements From.
use utopia_database::adapter::sqlite::pdo::to_long;
Rust
pub fn to_long(value: &Value) -> i64

Undocumented.