Class: QgsVectorLayerUndoPassthroughCommandUpdate

Undo command for running a specific sql query in a transaction group.

Class Hierarchy

Inheritance diagram of qgis.core.QgsVectorLayerUndoPassthroughCommandUpdate

Base classes

QgsVectorLayerUndoPassthroughCommand

Undo command for vector layer in a transaction group mode.

QgsVectorLayerUndoCommand

Base class for undo commands within a QgsVectorLayerEditBuffer.

QUndoCommand

class qgis.core.QgsVectorLayerUndoPassthroughCommandUpdate[source]

Bases: QgsVectorLayerUndoPassthroughCommand

__init__(buffer: QgsVectorLayerEditBuffer | None, transaction: QgsTransaction | None, sql: str | None, name: str | None)

Constructor for QgsVectorLayerUndoCommandUpdate

Parameters:
  • buffer (Optional[QgsVectorLayerEditBuffer]) – associated edit buffer

  • transaction (Optional[QgsTransaction]) – transaction running the sql query

  • sql (Optional[str]) – the query

  • name (Optional[str]) – The name of the command