Class: QgsTransactionGroup¶
Class Hierarchy¶
Base classes¶
Methods
Add a layer to this transaction group.  | 
|
Returns the connection string used by this transaction group.  | 
|
Returns   | 
|
Gets the set of layers currently managed by this transaction group.  | 
|
Returns   | 
|
Returns the provider key used by this transaction group.  | 
Signals
Will be emitted whenever there is a commit error  | 
- class qgis.core.QgsTransactionGroup(parent: QObject | None = None)[source]¶
 Bases:
QObject- addLayer(self, layer: QgsVectorLayer | None) bool[source]¶
 Add a layer to this transaction group.
Will return
Trueif it is compatible and has been added.- Parameters:
 layer (Optional[QgsVectorLayer])
- Return type:
 bool
- signal commitError(msg: str)[source]¶
 Will be emitted whenever there is a commit error
- Parameters:
 msg (str)
- connString(self) str[source]¶
 Returns the connection string used by this transaction group. Layers need be compatible when added.
- Return type:
 str
- isEmpty(self) bool[source]¶
 Returns
Trueif there are no layers in this transaction group.- Return type:
 bool
- layers(self) Set[QgsVectorLayer]¶
 Gets the set of layers currently managed by this transaction group.
- Return type:
 Set[QgsVectorLayer]
- Returns:
 Layer set