build_template_from_raw_table_info

Function build_template_from_raw_table_info 

Source
pub fn build_template_from_raw_table_info(
    table_info: &TableInfo,
) -> Result<CreateRequest>
Expand description

Constructs a [CreateRequest] based on the provided [TableInfo].

Note: This function is primarily intended for creating logical tables.

Logical table templates keep the original column order and primary key indices from TableInfo (including internal columns when present), because these are used to reconstruct the logical schema on the engine side.