pub trait Dialect {
Show 19 methods
// Required methods
fn kind(&self) -> DialectKind;
fn name(&self) -> &'static str;
fn quote_ident(&self, ident: &str) -> String;
fn placeholder(&self, index: usize) -> String;
fn supports_returning(&self) -> bool;
fn supports_native_uuid(&self) -> bool;
fn supports_json(&self) -> bool;
// Provided methods
fn max_bind_parameters(&self) -> Option<usize> { ... }
fn feature_set(&self) -> FeatureSet { ... }
fn supports_feature(&self, feature: BackendFeature) -> bool { ... }
fn render_column_type(&self, column: &ColumnDef) -> String { ... }
fn compile_schema_operation(
&self,
operation: &SchemaOperation,
) -> OrmdanticResult<Vec<String>> { ... }
fn begin_transaction_sql(&self, options: &TransactionOptions) -> Vec<String> { ... }
fn set_isolation_sql(&self, isolation_level: IsolationLevel) -> String { ... }
fn savepoint_sql(&self, name: &SavepointName) -> String { ... }
fn rollback_to_savepoint_sql(&self, name: &SavepointName) -> String { ... }
fn release_savepoint_sql(&self, name: &SavepointName) -> String { ... }
fn reflection_queries(
&self,
scope: &ReflectionScope,
) -> Vec<ReflectionQuery> { ... }
fn upsert_conflict_clause(
&self,
conflict_column: &str,
update_columns: &[String],
) -> OrmdanticResult<String> { ... }
}Required Methods§
fn kind(&self) -> DialectKind
fn name(&self) -> &'static str
fn quote_ident(&self, ident: &str) -> String
fn placeholder(&self, index: usize) -> String
fn supports_returning(&self) -> bool
fn supports_native_uuid(&self) -> bool
fn supports_json(&self) -> bool
Provided Methods§
fn max_bind_parameters(&self) -> Option<usize>
fn feature_set(&self) -> FeatureSet
fn supports_feature(&self, feature: BackendFeature) -> bool
fn render_column_type(&self, column: &ColumnDef) -> String
fn compile_schema_operation( &self, operation: &SchemaOperation, ) -> OrmdanticResult<Vec<String>>
fn begin_transaction_sql(&self, options: &TransactionOptions) -> Vec<String>
fn set_isolation_sql(&self, isolation_level: IsolationLevel) -> String
fn savepoint_sql(&self, name: &SavepointName) -> String
fn rollback_to_savepoint_sql(&self, name: &SavepointName) -> String
fn release_savepoint_sql(&self, name: &SavepointName) -> String
fn reflection_queries(&self, scope: &ReflectionScope) -> Vec<ReflectionQuery>
fn upsert_conflict_clause( &self, conflict_column: &str, update_columns: &[String], ) -> OrmdanticResult<String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".