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]
impl SQLiteQueryBuilder
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn with_prefix(prefix: String) -> Self
[src]
pub fn with_prefix(prefix: String) -> Self
Trait Implementations
impl QueryBuilder for SQLiteQueryBuilder
[src]
impl QueryBuilder for SQLiteQueryBuilder
fn push_sql(&mut self, sql: &str)
[src]
fn push_sql(&mut self, sql: &str)
fn push_identifier(&mut self, identifier: &str) -> BuildQueryResult
[src]
fn push_identifier(&mut self, identifier: &str) -> BuildQueryResult
fn push_typed_value(&mut self, value: &TypedValue) -> BuildQueryResult
[src]
fn push_typed_value(&mut self, value: &TypedValue) -> BuildQueryResult
fn push_bind_param(&mut self, name: &str) -> BuildQueryResult
[src]
fn push_bind_param(&mut self, name: &str) -> BuildQueryResult
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.
fn finish(self) -> SQLQuery
[src]
fn finish(self) -> SQLQuery
Auto Trait Implementations
impl !Send for SQLiteQueryBuilder
impl !Send for SQLiteQueryBuilder
impl !Sync for SQLiteQueryBuilder
impl !Sync for SQLiteQueryBuilder