pdo
ModuleThe 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;pub struct ExecutedA statement's result: what execute() returned, the rows and the row count.
use utopia_database::adapter::sqlite::pdo::Pdo;pub struct PdoThe PDO handle: one SQLite database file.
use utopia_database::adapter::sqlite::pdo::PdoError;pub struct PdoErrorA driver error (PDOException): its SQLSTATE, SQLite's result code
(errorInfo[1]) and its message.
use utopia_database::adapter::sqlite::pdo::Statement;pub struct StatementA prepared statement: SQL with named placeholders and bound values.
use utopia_database::adapter::sqlite::pdo::ParamType;pub enum ParamTypeA PDO parameter type (PDO::PARAM_*).
use utopia_database::adapter::sqlite::pdo::PdoFailure;pub enum PdoFailureA failed execute(): a driver error, or another exception (a value
that cannot be converted to a string).
From.use utopia_database::adapter::sqlite::pdo::to_long;pub fn to_long(value: &Value) -> i64Undocumented.