classMySqlReadOnlyDiagnosticStatement
final class MySqlReadOnlyDiagnosticStatement
Implements the My Sql Read Only Diagnostic Statement contract for MySQL.
Methods§
public static function isSafe(string $sql): boolIs Safe for the supplied MySQL input.
Parameters
$sql | string |
Returns
boolTest cases 2
Called from 2
Calls 5
- static-call SqlTokenStream::tokenize() line 30
- static-call MySqlLexerProfile::create() line 30
- function-call
countline 31 - static-call DiagnosticKeywords::containsKeyword() line 46
- class-const MySqlReadOnlyDiagnosticStatement::WRITE_KEYWORDS() line 50
Private surface 1§
Implementation details, listed for orientation only.
private const non-empty-list<string> WRITE_KEYWORDS = ['INSERT', 'UPDATE', 'DELETE', 'REPLACE', 'CREATE', 'ALTER', 'DROP', 'TRUNCATE'…Test cases 6§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 5
ClassifyRewriteAgreementChecker::checkcallsMySqlSessionFactoryTestcallsMySqlQueryGuardTestcallsMySqlRewriterTestcallsStatementRewriterTestcalls