Module mz_mysql_util::schemas

source ·

Structs§

Enums§

Constants§

Statics§

Functions§

  • 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
  • Parse the specified column as a TEXT COLUMN. We only support the set of types that are represented as an encoded-string in both the mysql-common binary query response and binlog event representation, OR types that we’ve added explicit casting support for.
  • Retrieve the tables and column descriptions for tables in the given schemas.