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

Extracts CREATE TABLE definitions and validates table options.

Methods§

public function tableBody(string $sql): ?string

Extracts CREATE TABLE definitions and validates table options.

Parameters

$sqlstring

Returns

?string
Test cases 1
Called from 1
Calls 7
public static function hasValidTableOptions(string $suffix): bool

Extracts CREATE TABLE definitions and validates table options.

Parameters

$suffixstring

Returns

bool
Test cases 1
Called from 1
Calls 5
public static function hasWithoutRowid(string $sql): bool
public function splitColumnDefinitions(string $body): array<int, string>

Split column/constraint definitions by commas, respecting parentheses.

Parameters

$bodystring

Returns

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

Test cases 12§

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

Dedicated tests 4
Other tests reaching this symbol 8

Relations§

Instantiated in 2
Static calls 1
Method calls 2