Function try_as_column_def

Source
pub fn try_as_column_def(
    column_schema: &ColumnSchema,
    is_primary_key: bool,
) -> Result<ColumnDef>
Expand description

Tries to construct a ColumnDef from the given ColumnSchema.

TODO(weny): Add tests for this function.