I used to often struggle to open a database prompt in order to debug an app or just collect info about the DB structure. The reasons are the following:
- an app may be mariadb, peertube or even sqlite, in order to know that we have to look at the installation script;
- we have to collect the database password (I noticed later that the dbname/login/password is stored in preferences and can be accessed using
yunohost app setting app ...
); - we have to have in mind the command to open a DB prompt;
To facilitate that, I imagined a command like yunohost tools db-prompt app
which would open psql / mariadb (and sqlite?) prompt loading all the required settings from the app.
What do you think?
I would be glad to propose a patch for this if the feedback is positive.