final class StatementClassifier
Restricted visibility: declared "@visibility ZtdQuery\Platform\Sqlite". Code outside that scope must not name this declaration.

Classifies supported top-level SQLite statements, including WITH prefixes.

Methods§

public function classifyStatement(string $sql): string|null

Classify the type of a SQL statement.

Parameters

$sqlstring

Returns

string|null Statement type: 'SELECT', 'INSERT', 'UPDATE', 'DELETE', 'CREATE_TABLE', 'DROP_TABLE', 'ALTER_TABLE', or null if unsupported.
Test cases 65
Called from 2
Calls 3
public function classifyKeywords(string $first, ?string $second, ?string $third): ?string

Maps leading keywords to supported statement kinds.

Parameters

$firststring
$second?string
$third?string

Returns

?string
Test cases 1
Called from 1

Test cases 90§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 66
Other tests reaching this symbol 24

Relations§

Instantiated in 2
Method calls 2