classKeywordSearch
final class KeywordSearch
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Keyword search operations for PostgreSQL diagnostic.
Methods§
public static function containsKeyword(
list<SqlToken> $tokens,
non-empty-list<string> $keywords,
): boolParameters
$tokens | list<SqlToken> | |
$keywords | non-empty-list<string> |
Returns
boolTest cases 1
Called from 2
- static-call ZtdQuery\Platform\Postgres\Sql\Diagnostic\PgSqlReadOnlyDiagnosticStatement::isSafe() packages/ztd-query-postgres/src/Sql/Diagnostic/PgSqlReadOnlyDiagnosticStatement.php:45
- static-call ZtdQuery\Platform\Postgres\Sql\Diagnostic\PgSqlReadOnlyDiagnosticStatement::isSafe() packages/ztd-query-postgres/src/Sql/Diagnostic/PgSqlReadOnlyDiagnosticStatement.php:49
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
PgSqlSessionFactoryTestcallsPgSqlQueryGuardTestcallsPgSqlRewriterTestcallsStatementRewriterTestcallsPgSqlReadOnlyDiagnosticStatementTestcalls
Relations§
Static calls 2
- static-call ZtdQuery\Platform\Postgres\Sql\Diagnostic\PgSqlReadOnlyDiagnosticStatement::isSafe() packages/ztd-query-postgres/src/Sql/Diagnostic/PgSqlReadOnlyDiagnosticStatement.php:45
- static-call ZtdQuery\Platform\Postgres\Sql\Diagnostic\PgSqlReadOnlyDiagnosticStatement::isSafe() packages/ztd-query-postgres/src/Sql/Diagnostic/PgSqlReadOnlyDiagnosticStatement.php:49