QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
15 #ifndef QGSVECTORLAYEREDITPASSTHROUGH_H
16 #define QGSVECTORLAYEREDITPASSTHROUGH_H
18 #include "qgis_core.h"
40 if ( qobject_cast<QgsVectorLayerEditPassthrough *>( sipCpp ) )
41 sipType = sipType_QgsVectorLayerEditPassthrough;
82 bool update(
QgsTransaction *transaction,
const QString &sql,
const QString &name );
92 #endif // QGSVECTORLAYEREDITPASSTHROUGH_H
virtual bool isModified() const
Returns true if the provider has been modified since the last commit.
virtual bool addAttribute(const QgsField &field)
Adds an attribute field (but does not commit it) returns true if the field was added.
virtual bool addFeature(QgsFeature &f)
Adds a feature.
This class allows including a set of layers in a database-side transaction, provided the layer data p...
Undo command for vector layer in transaction group mode.
virtual bool deleteAttribute(int attr)
Deletes an attribute field (but does not commit it)
virtual bool changeGeometry(QgsFeatureId fid, const QgsGeometry &geom)
Change feature's geometry.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
virtual bool deleteFeature(QgsFeatureId fid)
Delete a feature from the layer (but does not commit it)
QList< QgsFeature > QgsFeatureList
QMap< int, QVariant > QgsAttributeMap
virtual void rollBack()
Stop editing and discard the edits.
virtual bool renameAttribute(int attr, const QString &newName)
Renames an attribute field (but does not commit it)
QSet< QgsFeatureId > QgsFeatureIds
A geometry is the spatial representation of a feature.
Represents a vector layer which manages a vector based data sets.
virtual bool changeAttributeValue(QgsFeatureId fid, int field, const QVariant &newValue, const QVariant &oldValue=QVariant())
Changed an attribute value (but does not commit it)
virtual bool commitChanges(QStringList &commitErrors)
Attempts to commit any changes to disk.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
virtual bool deleteFeatures(const QgsFeatureIds &fid)
Deletes a set of features from the layer (but does not commit it)
virtual bool changeAttributeValues(QgsFeatureId fid, const QgsAttributeMap &newValues, const QgsAttributeMap &oldValues)
Changes values of attributes (but does not commit it).
virtual bool addFeatures(QgsFeatureList &features)
Insert a copy of the given features into the layer (but does not commit it)
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features
Encapsulate a field in an attribute table or data source.