Struct mentat_sql::SQLiteQueryBuilder
[−]
[src]
pub struct SQLiteQueryBuilder { pub sql: String, // some fields omitted }
A QueryBuilder that implements SQLite's specific escaping rules.
Fields
sql: String
Methods
impl SQLiteQueryBuilder
[src]
pub fn new() -> Self
[src]
pub fn with_prefix(prefix: String) -> Self
[src]
Trait Implementations
impl QueryBuilder for SQLiteQueryBuilder
[src]
fn push_sql(&mut self, sql: &str)
[src]
fn push_identifier(&mut self, identifier: &str) -> BuildQueryResult
[src]
fn push_typed_value(&mut self, value: &TypedValue) -> BuildQueryResult
[src]
fn push_bind_param(&mut self, name: &str) -> BuildQueryResult
[src]
Our bind parameters will be interleaved with pushed TypedValue
instances. That means we
need to use named parameters, not positional parameters.
The name
argument to this method is expected to be alphanumeric. If not, this method
returns an InvalidParameterName
error result.
Callers should make sure that the name doesn't overlap with generated parameter names. If
it does, BindParamCouldBeGenerated
is the error.