pub fn try_as_column_def( column_schema: &ColumnSchema, is_primary_key: bool, ) -> Result<ColumnDef>
Tries to construct a ColumnDef from the given ColumnSchema.
ColumnDef
ColumnSchema
TODO(weny): Add tests for this function.