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

Extracts INSERT sources and conflict-handling clauses.

Methods§

public function extractInsertValues(string $sql): array<int, array<int, string>>

Extract VALUES from an INSERT statement.

Parameters

$sqlstring

Returns

array<int, array<int, string>>
Test cases 23
Called from 1
Calls 7
public function extractInsertSelect(string $sql): ?string

Extract the SELECT subquery from an INSERT ... SELECT statement.

Parameters

$sqlstring

Returns

?string
Test cases 15
Called from 1
Calls 4

Test cases 100§

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

Dedicated tests 77
Other tests reaching this symbol 23

Relations§

Instantiated in 7
Method calls 7