Skip to main content

IndexGenerator

Trait IndexGenerator 

Source
pub trait IndexGenerator {
    // Required methods
    fn output_indexes(&self);
    fn output_indexes_for_table(&self, writer: &mut SqlWriter, table: &Table);
    fn output_index(
        &self,
        writer: &mut SqlWriter,
        statement_separator: &str,
        table: &Table,
        key_name: &str,
        key: &Key,
    );
    fn index_options(&self, key: &Key) -> Option<String>;
}

Required Methods§

Source

fn output_indexes(&self)

Source

fn output_indexes_for_table(&self, writer: &mut SqlWriter, table: &Table)

Source

fn output_index( &self, writer: &mut SqlWriter, statement_separator: &str, table: &Table, key_name: &str, key: &Key, )

Source

fn index_options(&self, key: &Key) -> Option<String>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§