Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateSQLForEditor ¶
ValidateSQLForEditor validates the SQL statement for SQL editor. We validate the statement by following steps: 1. Remove all quoted text(quoted identifier, string literal) and comments from the statement. 2. Use regexp to check if the statement is a normal SELECT statement and EXPLAIN statement. 3. For CTE, use regexp to check if the statement has UPDATE, DELETE and INSERT statements.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.