pub struct SQLiteQueryBuilder {
pub sql: String,
/* private fields */
}Expand description
A QueryBuilder that implements SQLite’s specific escaping rules.
Fields§
§sql: StringImplementations§
Source§impl SQLiteQueryBuilder
impl SQLiteQueryBuilder
pub fn new() -> Self
pub fn with_prefix(prefix: String) -> Self
Sourcepub fn set_dialect(&mut self, dialect: Dialect)
pub fn set_dialect(&mut self, dialect: Dialect)
Generate SQL for dialect (identifiers, and the few fragments that
differ). The default is SQLite.
Trait Implementations§
Source§impl Default for SQLiteQueryBuilder
impl Default for SQLiteQueryBuilder
Source§impl QueryBuilder for SQLiteQueryBuilder
impl QueryBuilder for SQLiteQueryBuilder
Source§fn push_bind_param(&mut self, name: &str) -> BuildQueryResult
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.
Source§fn dialect(&self) -> Dialect
fn dialect(&self) -> Dialect
The SQL dialect being generated. SQLite unless the builder was told
otherwise; fragments branch on it only where DuckDB differs.
fn push_sql(&mut self, sql: &str)
fn push_identifier(&mut self, identifier: &str) -> BuildQueryResult
fn push_typed_value(&mut self, value: &TypedValue) -> BuildQueryResult
fn finish(self) -> SQLQuery
Auto Trait Implementations§
impl !Send for SQLiteQueryBuilder
impl !Sync for SQLiteQueryBuilder
impl Freeze for SQLiteQueryBuilder
impl RefUnwindSafe for SQLiteQueryBuilder
impl Unpin for SQLiteQueryBuilder
impl UnsafeUnpin for SQLiteQueryBuilder
impl UnwindSafe for SQLiteQueryBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more