Re: [QGIS-Developer] Access DB manager connection details in a python plugins

2021-07-23 Thread Florian El Ahdab
Hi Thanks. Your code snippet is what I was looking for. I want to re-use the database connection settings from my plugin. Regards. Florian. Le ven. 23 juil. 2021 à 08:32, Etienne Trimaille < etienne.trimai...@gmail.com> a écrit : > Can you clarify what you need from DBManager? > Widgets ? Featu

Re: [QGIS-Developer] Access DB manager connection details in a python plugins

2021-07-22 Thread Etienne Trimaille
Can you clarify what you need from DBManager? Widgets ? Features ? Or do you mean to be able to list DB connections and launch SQL queries ? You should avoid importing code from the DbManager plugin as it is removed step by step. Use the database API : https://qgis.org/api/classQgsAbstractDatabase

[QGIS-Developer] Access DB manager connection details in a python plugins

2021-07-22 Thread Florian El Ahdab
Hi. I would like to take advantage of the db manager from a python plugin. That would allow me to avoid handling the database configuration myself and would make the overall ui more consistent for the user. I can't find any relevant reference to do that. Has anyone achieved anything like that ?