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_STMTmatches.SELECTandSHOWare dispatched separately below. - VARIABLES_
SCOPE 🔒 - Matches the optional
GLOBAL/SESSION/LOCALscope MySQL accepts beforeVARIABLES.
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
quoteof the literal starting atstart. - 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.