We would like to automate queries on the Phabricator database in order to track some statistics - for example, the average size of emails being sent out. To make this easier to script, we want to be able to control the way MySQL returns its output - for example, by using the -N flag. We have multiple MySQL machines running, and while we could normally do this with a mysql command, it would be nice if we could use the configuration and authentication that Phabricator already uses in ./bin/storage so that changing the database Phabricator is pointing to doesn't change how the script runs.
It would be great if we could pass through MySQL flags through ./bin/storage shell to faciliate automated queries.