Function mz_mysql_util::schemas::enum_vals_from_column_type

source ·
fn enum_vals_from_column_type(s: &str) -> Result<Vec<String>, Error>
Expand description

Parse the enum values from a column_type value on an enum column, which is a string like “enum(‘apple’,‘banana’,‘cher,ry’,‘ora’‘nge’)” We need to handle the case where the enum value itself contains a comma or a single quote (escaped with another quote), so we use a regex to do so