|
interface ConstraintSchemaInterface |
|
{ |
|
/** |
|
* Returns check constraints for all tables in the database. |
|
* |
|
* @param string $schema The schema of the tables. Defaults to empty string, meaning the current or default schema |
|
* name. |
|
* @param bool $refresh Whether to fetch the latest available table schemas. If this is `false`, cached data may be |
|
* returned if available. |
|
* |
|
* @return Check[] The check constraints for all tables in the database. |
|
*/ |
|
public function getSchemaChecks(string $schema = '', bool $refresh = false): array; |
|
|
|
/** |
|
* Returns default value constraints for all tables in the database. |
|
* |
|
* @param string $schema The schema of the tables. Defaults to empty string, meaning the current or default schema |
|
* name. |
|
* @param bool $refresh Whether to fetch the latest available table schemas. If this is `false`, cached data may be |
|
* returned if available. |
|
* |
|
* @return DefaultValue[] The default value constraints for all tables in the database. |
|
*/ |
|
public function getSchemaDefaultValues(string $schema = '', bool $refresh = false): array; |
|
|
|
/** |
|
* Returns foreign keys for all tables in the database. |
|
* |
|
* @param string $schema The schema of the tables. Defaults to empty string, meaning the current or default schema |
|
* name. |
|
* @param bool $refresh Whether to fetch the latest available table schemas. If this is `false`, cached data may be |
|
* returned if available. |
|
* |
|
* @return ForeignKey[] The foreign keys for all tables in the database. |
|
*/ |
|
public function getSchemaForeignKeys(string $schema = '', bool $refresh = false): array; |
|
|
|
/** |
|
* Returns indexes for all tables in the database. |
|
* |
|
* @param string $schema The schema of the tables. Defaults to empty string, meaning the current or default schema |
|
* name. |
|
* @param bool $refresh Whether to fetch the latest available table schemas. If this is false, cached data may be |
|
* returned if available. |
|
* |
|
* @return Index[] The indexes for all tables in the database. |
|
*/ |
|
public function getSchemaIndexes(string $schema = '', bool $refresh = false): array; |
|
|
|
/** |
|
* Returns primary keys for all tables in the database. |
|
* |
|
* @param string $schema The schema of the tables. Defaults to empty string, meaning the current or default schema |
|
* name. |
|
* @param bool $refresh Whether to fetch the latest available table schemas. If this is `false`, cached data may be |
|
* returned if available. |
|
* |
|
* @return Index[] The primary keys for all tables in the database. |
|
*/ |
|
public function getSchemaPrimaryKeys(string $schema = '', bool $refresh = false): array; |
|
|
|
/** |
|
* Returns unique constraints for all tables in the database. |
|
* |
|
* @param string $schema The schema of the tables. Defaults to empty string, meaning the current or default schema |
|
* name. |
|
* @param bool $refresh Whether to fetch the latest available table schemas. If this is `false`, cached data may be |
|
* returned if available. |
|
* |
|
* @return Index[] The unique constraints for all tables in the database. |
|
*/ |
|
public function getSchemaUniques(string $schema = '', bool $refresh = false): array; |
|
|
Description
SchemaInterface::getSchemaChecks()getSchemaDefaultValues()getSchemaIndexes()getSchemaPrimaryKeys()getSchemaUniques()db/src/Constraint/ConstraintSchemaInterface.php
Lines 16 to 89 in f26a751
Package version
2
PHP version
any