pub enum Dialect {
MySql,
Postgres,
Sqlite,
}Expand description
The SQL dialect a backend speaks. Cloudflare D1 maps to Sqlite (it is
SQLite over HTTP); the executor handles the transport difference.
Variants§
Implementations§
Source§impl Dialect
impl Dialect
Sourcepub fn build_query<S>(&self, stmt: &S) -> (String, Values)where
S: QueryStatementBuilder,
pub fn build_query<S>(&self, stmt: &S) -> (String, Values)where
S: QueryStatementBuilder,
Render a data statement (SELECT/INSERT/UPDATE/DELETE) to
parameterised SQL plus its ordered bind values.
Sourcepub fn build_schema<S>(&self, stmt: &S) -> Stringwhere
S: SchemaStatementBuilder,
pub fn build_schema<S>(&self, stmt: &S) -> Stringwhere
S: SchemaStatementBuilder,
Render a schema statement (e.g. CREATE TABLE) to SQL. Schema
statements carry no bind values.
Trait Implementations§
impl Copy for Dialect
impl Eq for Dialect
impl StructuralPartialEq for Dialect
Auto Trait Implementations§
impl Freeze for Dialect
impl RefUnwindSafe for Dialect
impl Send for Dialect
impl Sync for Dialect
impl Unpin for Dialect
impl UnsafeUnpin for Dialect
impl UnwindSafe for Dialect
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Event for T
impl<T> Event for T
Source§fn event_name() -> &'static strwhere
Self: Sized,
fn event_name() -> &'static strwhere
Self: Sized,
A human-readable name, used by wildcard listeners and log output.
Always the Rust type path; see the trait docs.