classSqliteReadOnlyDiagnosticStatement
final class SqliteReadOnlyDiagnosticStatement
Recognizes read-only EXPLAIN statements that can run unchanged.
Methods§
public static function isSafe(string $sql): boolReturns whether the SQL can pass through without modifying persistent tables.
Parameters
$sql | string |
Returns
boolTest cases 2
Called from 2
Calls 3
- static-call SqlTokenStream::tokenize() line 19
- static-call SqliteLexerProfile::create() line 19
- function-call
countline 20
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
RewriteCheck::verifycallsSqliteQueryGuardTestcallsSqliteRewriterTestcallsStatementRewriterTestcallsSqliteSessionFactoryTestcalls