Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to set database for schemaManager functions #3611

Closed
sofiiakulish opened this issue Jun 19, 2019 · 4 comments
Closed

Allow to set database for schemaManager functions #3611

sofiiakulish opened this issue Jun 19, 2019 · 4 comments

Comments

@sofiiakulish
Copy link

Feature Request

Q A
New Feature yes
RFC no
BC Break no

Summary

Hello!
I have unusual type of connection. My connection class works with one database for some tables, and another database - for other tables. And when I need to use listTableDetails function ($connection->getSchemaManager()->listTableDetails($tableName)) I should set some parameters for database before using this function, and return them back after.

Is it possible to add second optional parameter for listTableDetails function as $database? And the same to the listTableIndexes function as a result (lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php) ?

@morozov
Copy link
Member

morozov commented Jun 19, 2019

That would make sense. Other schema introspection methods like listTableColumns() and listTableForeignKeys() already accept an optional $database argument.

@lewa
Copy link

lewa commented Jul 22, 2020

There's a 5-year-old pull request "parameter $database for listTableIndexes, listTableDetails":
#885

@morozov
Copy link
Member

morozov commented Aug 5, 2022

Closing in favor of #5289.

@morozov morozov closed this as not planned Won't fix, can't repro, duplicate, stale Aug 5, 2022
@github-actions
Copy link

github-actions bot commented Sep 5, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants