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

Resolves the target relation of a SQLite data or schema statement.

Methods§

public function extractTargetTable(string $sql): ?string

Extract the target table name from a DML statement.

Parameters

$sqlstring

Returns

?string
Test cases 63
Called from 1
Calls 8
public function extractInsertTable(string $sql): ?string
public function extractUpdateTable(string $sql): ?string
public function extractDeleteTable(string $sql): ?string
public function extractCreateTableName(string $sql): ?string
public function extractDropTableName(string $sql): ?string

Resolves the target relation of a SQLite data or schema statement.

Parameters

$sqlstring

Returns

?string
Test cases 1
Called from 1
Calls 6
public function extractAlterTableName(string $sql): ?string

Test cases 92§

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

Dedicated tests 69
Other tests reaching this symbol 23

Relations§

Instantiated in 1
Method calls 1