-
Notifications
You must be signed in to change notification settings - Fork 146
Description
Background
Empty CQL values are those that have length equal to 0. It's a legacy from old Cassandra versions.
MaybeEmpty is type-safe representation of any type that can be inserted into the DB as empty (some types are emptiable and others are not).
It was introduced to support typed deserialization of a value that is possibly empty in the DB; therefore, it implements DeserializeValue.
There's also CqlValue::Empty variant, so it's possible to insert empty values to the DB using this type-erased method (i.e., CqlValue umbrella type).
Problem
MaybeEmpty does not implement SerializeValue, so we're missing the proper way to insert empty types into the DB. Let's add this missing implementation.
Reactions are currently unavailable