Class: QgsVectorLayerEditPassthrough¶
Class Hierarchy¶
Base classes¶
Stores queued vector layer edit operations prior to committing changes to the layer’s data provider.  | 
|
Methods
Update underlying data with a SQL query embedded in a transaction.  | 
- class qgis.core.QgsVectorLayerEditPassthrough(layer: QgsVectorLayer | None)[source]¶
 Bases:
QgsVectorLayerEditBuffer- update(self, transaction: QgsTransaction | None, sql: str | None, name: str | None) bool[source]¶
 Update underlying data with a SQL query embedded in a transaction.
- Parameters:
 transaction (Optional[QgsTransaction]) – Transaction in which the sql query has been run
sql (Optional[str]) – The SQL query updating data
name (Optional[str]) – The name of the undo/redo command
- Return type:
 bool
- Returns:
 Trueif the undo/redo command is well added to the stack,Falseotherwise