SqlDialect

Trait SqlDialect 

Source
pub trait SqlDialect:
    Sized
    + Database
    + Send
    + Sync
where Self::Connection: Send,
{ // Required methods fn placeholder(n: usize) -> String; fn auto_increment_pk() -> &'static str; fn rows_affected(res: &Self::QueryResult) -> u64; fn last_insert_id(res: &Self::QueryResult) -> i64; // Provided methods fn current_timestamp_fn() -> &'static str { ... } fn int_type() -> &'static str { ... } fn text_type() -> &'static str { ... } fn bool_type() -> &'static str { ... } fn float_type() -> &'static str { ... } }

Required Methods§

Provided Methods§

Source

fn current_timestamp_fn() -> &'static str

Source

fn int_type() -> &'static str

Source

fn text_type() -> &'static str

Source

fn bool_type() -> &'static str

Source

fn float_type() -> &'static str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl SqlDialect for MySql

Available on crate feature mysql only.
Source§

impl SqlDialect for Postgres

Available on crate feature postgres only.
Source§

impl SqlDialect for Sqlite

Available on crate feature sqlite only.