Class: QgsConnectionRegistry

class qgis.core.QgsConnectionRegistry(parent: QObject = None)

Bases: PyQt5.QtCore.QObject

Constructor for QgsConnectionRegistry.

A registry for saved data provider connections, allowing retrieval of saved connections by name and provider type.

QgsConnectionRegistry is not usually directly created, but rather accessed through QgsApplication.connectionRegistry()

New in version 3.14.

Parameters

parent

childEvent()
connectNotify()
createConnection(self, name: str)QgsAbstractProviderConnection

Creates a new connection by loading the connection with the given id from the settings.

The id string must be of the format “provider://connection_name”, e.g. “postgres://my_connection” for the PostgreSQL connection saved as “my_connection”.

Ownership is transferred to the caller.

Raises

: – py:class:QgsProviderConnectionException

Parameters

name (str) –

Return type

QgsAbstractProviderConnection

customEvent()
disconnectNotify()
isSignalConnected()
receivers()
sender()
senderSignalIndex()
timerEvent()