classTableQueries
final class TableQueries
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Runs the ordered catalog queries needed to reconstruct a table declaration.
Methods§
public function __construct(private ConnectionInterface $connection)Supplies the connection used to inspect the current PostgreSQL schema.
Parameters
$connection | ConnectionInterface |
public function columns(string $tableName): StatementInterface|falseFetches columns metadata in its catalog order.
Parameters
$tableName | string |
Returns
StatementInterface|falseCalled from 1
Calls 2
- function-call
str_replaceline 29 - method-call ConnectionInterface::query() line 30
public function primaryKey(string $tableName): StatementInterface|falseFetches primary key metadata in its catalog order.
Parameters
$tableName | string |
Returns
StatementInterface|falseCalled from 1
Calls 2
- function-call
str_replaceline 46 - method-call ConnectionInterface::query() line 47
public function uniqueIndexes(string $tableName): StatementInterface|falseFetches unique indexes metadata in its catalog order.
Parameters
$tableName | string |
Returns
StatementInterface|falseCalled from 1
Calls 2
- function-call
str_replaceline 65 - method-call ConnectionInterface::query() line 66
public function foreignKeys(string $tableName): StatementInterface|falseFetches foreign keys metadata in its catalog order.
Parameters
$tableName | string |
Returns
StatementInterface|falseCalled from 1
Calls 2
- function-call
str_replaceline 91 - method-call ConnectionInterface::query() line 92
Private surface 1§
Implementation details, listed for orientation only.
private ConnectionInterface $connectionTest cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
TableQueriesTest::testColumnsQueriesTheCurrentSchemaAndEscapesTheTableNamecallsTableQueriesTest::testForeignKeysQueriesTheCurrentSchemaAndEscapesTheTableNamecallsTableQueriesTest::testPrimaryKeyQueriesTheCurrentSchemaAndEscapesTheTableNamecallsTableQueriesTest::testUniqueIndexesQueriesTheCurrentSchemaAndEscapesTheTableNamecalls
Other tests reaching this symbol 3
PgSqlSessionFactoryTestcallsPgSqlSchemaReflectorTestcallsSchemaInitializerTestcalls
Relations§
Instantiated in 1
Method calls 4
- method-call ZtdQuery\Platform\Postgres\Schema\PgSqlSchemaReflector::getCreateStatement() packages/ztd-query-postgres/src/Schema/PgSqlSchemaReflector.php:42
- method-call ZtdQuery\Platform\Postgres\Schema\PgSqlSchemaReflector::getCreateStatement() packages/ztd-query-postgres/src/Schema/PgSqlSchemaReflector.php:54
- method-call ZtdQuery\Platform\Postgres\Schema\PgSqlSchemaReflector::getCreateStatement() packages/ztd-query-postgres/src/Schema/PgSqlSchemaReflector.php:55
- method-call ZtdQuery\Platform\Postgres\Schema\PgSqlSchemaReflector::getCreateStatement() packages/ztd-query-postgres/src/Schema/PgSqlSchemaReflector.php:57