classTableConstraint
final class TableConstraint
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Table constraint operations for PostgreSQL definition.
Methods§
public function parseConstraint(
string $entry,
list<string> &$primaryKeys,
array<string, list<string>> &$uniqueConstraints,
int &$uniqueIndex,
): voidParameters
$entry | string | |
$primaryKeys | list<string> | |
$uniqueConstraints | array<string, list<string>> | |
$uniqueIndex | int |
Test cases 1
Called from 1
Calls 4
- function-call
preg_matchline 20 - method-call TableConstraint::parseColumnRefList() line 21
- function-call
in_arrayline 23 - method-call TableConstraint::unquoteIdentifier() line 36
public function isConstraintEntry(string $entry): boolIs constraint entry.
Parameters
$entry | string |
Returns
boolTest cases 1
Called from 1
public function parseColumnRefList(string $str): list<string>Parameters
$str | string |
Returns
list<string>Test cases 1
Called from 2
- method-call ZtdQuery\Platform\Postgres\Schema\Definition\TableConstraint::parseConstraint() packages/ztd-query-postgres/src/Schema/Definition/TableConstraint.php:21
- method-call ZtdQuery\Platform\Postgres\Schema\Definition\TableConstraint::parseConstraint() packages/ztd-query-postgres/src/Schema/Definition/TableConstraint.php:32
Calls 3
- function-call
explodeline 67 - function-call
trimline 68 - method-call TableConstraint::unquoteIdentifier() line 69
public function unquoteIdentifier(string $identifier): stringUnquote identifier.
Parameters
$identifier | string |
Returns
stringTest cases 1
Called from 3
- method-call ZtdQuery\Platform\Postgres\Schema\Definition\ColumnDefinition::parseColumnDefinition() packages/ztd-query-postgres/src/Schema/Definition/ColumnDefinition.php:28
- method-call ZtdQuery\Platform\Postgres\Schema\Definition\TableConstraint::parseConstraint() packages/ztd-query-postgres/src/Schema/Definition/TableConstraint.php:36
- method-call ZtdQuery\Platform\Postgres\Schema\Definition\TableConstraint::parseColumnRefList() packages/ztd-query-postgres/src/Schema/Definition/TableConstraint.php:69
Test cases 15§
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 11
PgSqlSessionFactoryTestcallsTableContextTestcallsPgSqlRewriterTestcallsStatementRewriterTestcallsColumnDefinitionTestcallsTableFieldsTestcallsPgSqlSchemaParserTestcallsSchemaInitializerTestcallsRowMutationResolverTestcallsTableMutationResolverTestcallsPgSqlMutationResolverTestcalls
Relations§
Instantiated in 3
- new ZtdQuery\Platform\Postgres\Schema\Definition\ColumnDefinition::parseColumnDefinition() packages/ztd-query-postgres/src/Schema/Definition/ColumnDefinition.php:28
- new ZtdQuery\Platform\Postgres\Schema\Definition\TableFields::appendEntry() packages/ztd-query-postgres/src/Schema/Definition/TableFields.php:67
- new ZtdQuery\Platform\Postgres\Schema\Definition\TableFields::appendEntry() packages/ztd-query-postgres/src/Schema/Definition/TableFields.php:68
Method calls 3
- method-call ZtdQuery\Platform\Postgres\Schema\Definition\ColumnDefinition::parseColumnDefinition() packages/ztd-query-postgres/src/Schema/Definition/ColumnDefinition.php:28
- method-call ZtdQuery\Platform\Postgres\Schema\Definition\TableFields::appendEntry() packages/ztd-query-postgres/src/Schema/Definition/TableFields.php:67
- method-call ZtdQuery\Platform\Postgres\Schema\Definition\TableFields::appendEntry() packages/ztd-query-postgres/src/Schema/Definition/TableFields.php:68