How to get all database which can be used in 'db_set_active' Is there any way to list all possible database connections using Drush?
I am debugging an application where db connections are not written in settings.php and I'm not able to find all possible connections. And in code I can see

$database = db_set_active('test');


Is there any way to list the db connection names like test, test1, test2?
Any help is appreciated.
All database connection strings are in global $databases variable;

global $databases;
dpm($databases);


with drush:

drush php-eval 'global $databases; print_r($databases);'