I have a plugin for QGIS that helps to populate databases. The user has the option to create a new database or to use an existing connection. If the user chooses to make a new database, I would also like to add this database as a new connection in the browser panel :
I can find lots of help on connecting to the database, which I have been able to do, but nothing for how to add a new connection. Is this possible?