pub trait Dialect: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn identifier_quote(&self) -> char;
fn placeholder(&self, index: usize) -> String;
fn supports_returning(&self) -> bool;
fn supports_on_conflict(&self) -> bool;
// Provided methods
fn supports_update_from(&self) -> bool { ... }
fn supports_select_row_locking(&self) -> bool { ... }
fn supports_table_locking(&self) -> bool { ... }
}Required Methods§
fn name(&self) -> &'static str
fn identifier_quote(&self) -> char
fn placeholder(&self, index: usize) -> String
fn supports_returning(&self) -> bool
fn supports_on_conflict(&self) -> bool
Provided Methods§
Sourcefn supports_update_from(&self) -> bool
fn supports_update_from(&self) -> bool
Whether the dialect accepts UPDATE ... FROM ....
Sourcefn supports_select_row_locking(&self) -> bool
fn supports_select_row_locking(&self) -> bool
Whether the dialect accepts the typed SELECT row-locking clause.
Sourcefn supports_table_locking(&self) -> bool
fn supports_table_locking(&self) -> bool
Whether the dialect accepts PostgreSQL-style typed table locks.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".