Skip to main content

table_schema_from_fields

Function table_schema_from_fields 

Source
pub fn table_schema_from_fields(
    table_name: &str,
    fields: &[FieldInfo],
    primary_key_cols: &[&str],
) -> TableInfo
Expand description

Convert field metadata to a TableInfo.

This is the core conversion function that transforms the compile-time FieldInfo array into a runtime TableInfo structure compatible with database introspection.