IndexExt

Trait IndexExt 

Source
pub trait IndexExt {
    // Required methods
    fn psql_primary_to_unique(&self, table_name: &str) -> Self;
    fn sql_name(&self, table_name: &str, dialect: SQLDialect) -> Cow<'_, str>;
    fn joined_names(&self) -> String;
    fn psql_suffix(&self) -> &str;
    fn normalize_name_psql(&self, table_name: &str) -> String;
    fn normalize_name_normal(&self, table_name: &str) -> String;
    fn normalize_name(&self, table_name: &str, dialect: SQLDialect) -> String;
    fn to_sql_drop(&self, dialect: SQLDialect, table_name: &str) -> String;
    fn to_sql_create(&self, dialect: SQLDialect, table_name: &str) -> String;
    fn sql_format_item(
        dialect: SQLDialect,
        item: &Item,
        table_create_mode: bool,
    ) -> String;
}

Required Methods§

Source

fn psql_primary_to_unique(&self, table_name: &str) -> Self

Source

fn sql_name(&self, table_name: &str, dialect: SQLDialect) -> Cow<'_, str>

Source

fn joined_names(&self) -> String

Source

fn psql_suffix(&self) -> &str

Source

fn normalize_name_psql(&self, table_name: &str) -> String

Source

fn normalize_name_normal(&self, table_name: &str) -> String

Source

fn normalize_name(&self, table_name: &str, dialect: SQLDialect) -> String

Source

fn to_sql_drop(&self, dialect: SQLDialect, table_name: &str) -> String

Source

fn to_sql_create(&self, dialect: SQLDialect, table_name: &str) -> String

Source

fn sql_format_item( dialect: SQLDialect, item: &Item, table_create_mode: bool, ) -> String

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 IndexExt for Index

Source§

fn psql_primary_to_unique(&self, table_name: &str) -> Self

Source§

fn sql_name(&self, table_name: &str, dialect: SQLDialect) -> Cow<'_, str>

Source§

fn joined_names(&self) -> String

Source§

fn psql_suffix(&self) -> &str

Source§

fn normalize_name_psql(&self, table_name: &str) -> String

Source§

fn normalize_name_normal(&self, table_name: &str) -> String

Source§

fn normalize_name(&self, table_name: &str, dialect: SQLDialect) -> String

Source§

fn to_sql_drop(&self, dialect: SQLDialect, table_name: &str) -> String

Source§

fn to_sql_create(&self, dialect: SQLDialect, table_name: &str) -> String

Source§

fn sql_format_item( dialect: SQLDialect, item: &Item, table_create_mode: bool, ) -> String

Implementors§