We have already have a Schema.with_metadata() method, and for Field we have with_metadata/with_name/with_type/with_nullable to create new fields from an existing one.
If you edit such a field, it would also be nice to have an easy way to update the Schema with that updated field, so that you could do something like this:
The with_.. mimics the other methods, although in this case it takes the index of the field to set, so a set_field() method might be a more fitting name (and then mimics Table.set_column)
We have already have a
Schema.with_metadata()
method, and forField
we havewith_metadata
/with_name
/with_type
/with_nullable
to create new fields from an existing one.If you edit such a field, it would also be nice to have an easy way to update the Schema with that updated field, so that you could do something like this:
The
with_..
mimics the other methods, although in this case it takes the index of the field to set, so aset_field()
method might be a more fitting name (and then mimicsTable.set_column
)