query::sql::show_create_table

Function primary_key_columns_for_show_create

Source
fn primary_key_columns_for_show_create<'a>(
    table_meta: &'a TableMeta,
    engine: &str,
) -> Vec<&'a String>
Expand description

Returns the primary key columns for SHOW CREATE TABLE statement.

For metric engine, it will only return the primary key columns that are not internal columns.