final class PragmaSchema
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Reconstructs a schema from SQLite PRAGMA column metadata.

Methods§

public function fetchSchemaViaPragma(PDO $pdo, string $tableName): TableSchema

Build schema directly from PRAGMA table_info.

Parameters

$pdoPDO
$tableNamestring

Throws

RuntimeException
Test cases 1
Called from 1
Calls 7
public function parseDefaultValue(?string $value): int|float|string|null

Parses default value.

Parameters

$value?string

Returns

int|float|string|null
Test cases 2
Called from 1
Calls 4

Test cases 14§

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

Dedicated tests 3
Other tests reaching this symbol 11

Relations§

Instantiated in 2
Method calls 2