classTableKey
final class TableKey
Restricted visibility: declared "@visibility SqlSemantics\Platform\Sqlite". Code outside that scope must not name this declaration.
What the primary key constraints of a table definition establish; a working value of one derivation.
Properties§
public list<int> $columns = []public int|null $rowid = nullpublic int $constraints = 0public bool $autoincrement = falseMethods§
public function __construct(
public list<int> $columns = [],
public int|null $rowid = null,
public int $constraints = 0,
public bool $autoincrement = false,
)Parameters
$columns | list<int> | The positions of the columns of the first primary key, in key order |
$rowid | int|null | The position of the column that the first primary key makes an integer primary key |
$constraints | int | How many PRIMARY KEY constraints the definition writes |
$autoincrement | bool | Whether the first primary key is written with AUTOINCREMENT |
Test cases 3§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 1
Relations§
Instantiated in 3
- new SqlSemantics\Platform\Sqlite\Rules\Definition\PrimaryKeyRule::key() packages/sql-semantics-sqlite/src/Rules/Definition/PrimaryKeyRule.php:46
- new SqlSemantics\Platform\Sqlite\Rules\Definition\PrimaryKeyRule::key() packages/sql-semantics-sqlite/src/Rules/Definition/PrimaryKeyRule.php:59
- new SqlSemantics\Platform\Sqlite\Rules\Definition\PrimaryKeyRule::tableKey() packages/sql-semantics-sqlite/src/Rules/Definition/PrimaryKeyRule.php:81
Type declarations 5
- type SqlSemantics\Platform\Sqlite\Rules\Definition\PrimaryKeyRule packages/sql-semantics-sqlite/src/Rules/Definition/PrimaryKeyRule.php:38
- type SqlSemantics\Platform\Sqlite\Rules\Definition\PrimaryKeyRule packages/sql-semantics-sqlite/src/Rules/Definition/PrimaryKeyRule.php:67
- type SqlSemantics\Platform\Sqlite\Rules\Definition\TableDeclaration packages/sql-semantics-sqlite/src/Rules/Definition/TableDeclaration.php:80
- type SqlSemantics\Platform\Sqlite\Rules\Definition\TableProblems packages/sql-semantics-sqlite/src/Rules/Definition/TableProblems.php:46
- type SqlSemantics\Platform\Sqlite\Rules\Definition\TableProblems packages/sql-semantics-sqlite/src/Rules/Definition/TableProblems.php:77