Allow to pass a connection to the `dbconsole` command
#29358

robin850 wants to merge robin850:dbconsole-connection into rails:master

We do not currently have an analysis of these two commits