Skip to main content

AdapterDialect

Trait AdapterDialect 

Source
pub trait AdapterDialect {
    // Required methods
    fn bind_param(&self, index: usize) -> String;
    fn identifier(&self, v: &str) -> String;
    fn literal_string(&self, v: &str) -> String;
    fn column_type(
        &self,
        t: &ColumnDefinition<'_>,
        is_primary: bool,
        auto_increment: bool,
    ) -> String;

    // Provided methods
    fn bind_value(&self, index: usize, value: &DinocoValue) -> String { ... }
    fn cast_numeric_for_division(&self, expr: &str) -> String { ... }
    fn offset_without_limit(&self) -> String { ... }
    fn supports_native_enums(&self) -> bool { ... }
    fn supports_insert_returning(&self) -> bool { ... }
}

Required Methods§

Source

fn bind_param(&self, index: usize) -> String

Source

fn identifier(&self, v: &str) -> String

Source

fn literal_string(&self, v: &str) -> String

Source

fn column_type( &self, t: &ColumnDefinition<'_>, is_primary: bool, auto_increment: bool, ) -> String

Provided Methods§

Implementors§