pub trait SqlDialect:
Database
+ Sized
+ Send
+ Syncwhere
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§
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
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.
impl SqlDialect for Sqlite
Available on crate feature
sqlite only.