Module schemas

Source

Structs§

InfoSchema
MySqlTableSchema
A representation of the raw schema info for a table from MySQL
QualifiedTableRef
A reference to a table in a schema/database

Enums§

SchemaRequest
Request for table schemas from MySQL

Constants§

INFO_SCHEMA_COLS 🔒
Helper for querying information_schema.columns

Statics§

ENUM_VAL_REGEX 🔒
SYSTEM_SCHEMAS
Built-in system schemas that should be ignored when querying for user-defined tables since they contain dozens of built-in system tables that are likely not needed.

Functions§

enum_vals_from_column_type 🔒
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_as_text_column 🔒
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.
parse_data_type 🔒
schema_info
Retrieve the tables and column descriptions for tables in the given schemas.