Skip to content

Remove unused schema methods #1175

@Tigrov

Description

@Tigrov

Description

SchemaInterface::

  • getSchemaChecks()
  • getSchemaDefaultValues()
  • getSchemaIndexes()
  • getSchemaPrimaryKeys()
  • getSchemaUniques()

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;

Package version

2

PHP version

any

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions