Skip to main content

Module federated

Module federated 

Source
Expand description

Use regex to filter out some MySQL federated components’ emitted statements. Inspired by Databend’s “mysql_federated.rs”.

Constants§

OTHER_LEADING_KEYWORDS 🔒
The statement keywords that only OTHER_NOT_SUPPORTED_STMT matches. SELECT and SHOW are dispatched separately below.
VARIABLES_SCOPE 🔒
Matches the optional GLOBAL/SESSION/LOCAL scope MySQL accepts before VARIABLES.

Statics§

OTHER_NOT_SUPPORTED_STMT 🔒
SELECT_TIME_DIFF_FUNC_PATTERN 🔒
SELECT_USER_OR_VAR_PATTERN 🔒
SELECT_VAR_PATTERN 🔒
SHOW_LOWER_CASE_PATTERN 🔒
SHOW_SQL_MODE_PATTERN 🔒
SHOW_VARIABLES_LIKE_PATTERN 🔒
SHOW_WARNINGS_PATTERN 🔒
VAR_VALUES 🔒

Functions§

check 🔒
check_others 🔒
check_select_user_or_var 🔒
check_select_variable 🔒
check_show_variables 🔒
check_show_warnings 🔒
has_trailing_statement 🔒
Returns true if another statement follows the first statement-level ;.
leading_keyword 🔒
Returns the leading run of ASCII letters, which is the statement keyword for everything this module matches.
line_comment_end 🔒
Returns the index just past the line terminator at or after from.
quoted_end 🔒
Returns the index just past the closing quote of the literal starting at start.
select_function 🔒
select_variable 🔒
show_variables 🔒
show_warnings 🔒
Build SHOW WARNINGS result from session’s warnings
strip_leading_comments 🔒
Strips leading whitespace and SQL comments.