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

Accumulates column and key declarations in their original CREATE TABLE order.

Methods§

public function addColumn(array{name: string, type: string|null, notNull: bool, primaryKey: bool, unique: bool, default: string|null, generatedExpression: string|null} $colInfo): void

Parameters

$colInfoarray{name: string, type: string|null, notNull: bool, primaryKey: bool, unique: bool, default: string|null, generatedExpression: string|null}
Test cases 1
Called from 1
Calls 1

Private surface 8§

Implementation details, listed for orientation only.

private list<string> $columns = []
private array<string, string> $columnTypes = []
private array<string, string> $primaryKeyMap = []
private list<string> $notNullColumns = []
private array<string, list<string>> $uniqueConstraints = []
private array<string, string> $columnDefaults = []
private array<string, string> $generatedExpressions = []
private int $uniqueIndex = 0

Test cases 12§

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

Dedicated tests 5
Other tests reaching this symbol 7

Relations§

Instantiated in 1
Method calls 2