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

Extracts statement boundaries and referenced relations.

Methods§

public function splitStatements(string $sql): list<string>

Split a SQL string into individual statements.

Parameters

$sqlstring

Returns

list<string>
Test cases 36
Called from 1
Calls 2
public function extractSelectTables(string $sql): array<int, string>

Extract table names referenced in a SELECT statement.

Parameters

$sqlstring

Returns

array<int, string>
Test cases 57
Called from 1
Calls 2

Test cases 118§

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

Dedicated tests 94
Other tests reaching this symbol 24

Relations§

Instantiated in 5
Method calls 5