3liz / qgis-pgmetadata-plugin

QGIS Plugin to manage some metadata from PostgreSQL layer
GNU General Public License v2.0
12 stars 10 forks source link

Global connection and multiple databases #8

Open Gustry opened 4 years ago

Gustry commented 4 years ago

For now, we are using a global connection variable to let the plugin knows where is the pgmetadata schema. This is needed for the locator for instance, to know in which database the query can be made.

For the OTF metadata display, we should check in the current database layer, and not using the variable. But people might wonder why the results is different between the locator?

Gustry commented 4 years ago

It's done.

The last thing to do is to be able to query the correct connection name in the dock, instead of querying all connections.

mdouchin commented 4 years ago

I would also add a simple way to let the user fill in the QGIS global variable pgmetadata_connection_names with a button (or combobox or dedicated processing algorithm) which is visible in the dock.

We could add this UI widget only if the pgmetadata_connection_names is not set, or always

Gustry commented 4 years ago

Done in 9c348fd, there is now a algorithm to select one or many databases.