scylladb / scylla-rust-driver

Async CQL driver for Rust, optimized for ScyllaDB!
Apache License 2.0
560 stars 97 forks source link

Unify ColumnType and CqlType #691

Open piodul opened 1 year ago

piodul commented 1 year ago

Currently, the driver has two complex but similar types: ColumnType and CqlType. They are both supposed to represent a CQL type, but have slight differences:

Those types have very similar names and function, so it might make sense to unify them. This will help write user logic that is supposed to operate on both representations. We will have to account for the differences:

roydahan commented 7 months ago

If we decided that it shouldn't be part of 0.12.0, please comment and describe the decision and dependency and change the Milestone.

piodul commented 7 months ago

We discussed it offline with @muzarski and decided to go with the last option on the "Handling the MissingUserDefinedType case". It introduces a dependency on https://github.com/scylladb/scylla-rust-driver/issues/595, which is currently being worked on and targets 0.13.0, so I'll move this one to 0.13.0, too.