SqlDialect

Trait SqlDialect 

Source
pub trait SqlDialect: Database + Sized {
    // Required methods
    fn placeholder(n: usize) -> String;
    fn auto_increment_pk() -> &'static str;
    fn rows_affected(res: &Self::QueryResult) -> u64;

    // 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.

Implementations on Foreign Types§

Source§

impl SqlDialect for Sqlite

Available on crate feature sqlite only.

Implementors§