[QGIS-Developer] Problems with QgsProviderRegistry providerMetadata method

Bo Victor Thomsen bo.victor.thomsen at gmail.com
Mon Oct 25 03:03:54 PDT 2021


Thanks Alessandro - that did the trick...

This works:

metadata = QgsProviderRegistry.instance().providerMetadata('postgres')
conn = metadata.connections(*False*)
for c in conn.keys(): print(c)

As I suspected: The bug was placed 50 cm from the computer screen, i.e 
an "error-50"

Med venlig hilsen / Kind regards

Bo Victor Thomsen

Den 25-10-2021 kl. 11:54 skrev Alessandro Pasotti:
> connections(boolcached=true)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20211025/e00aaf14/attachment.html>


More information about the QGIS-Developer mailing list