81 QString connectionString()
const;
90 bool addLayer(
QgsVectorLayer *layer,
bool addLayersInEditMode =
false );
102 bool begin( QString &errorMsg
SIP_OUT,
int statementTimeout = 20 );
107 bool commit( QString &errorMsg
SIP_OUT );
112 bool rollback( QString &errorMsg
SIP_OUT );
124 virtual bool executeSql(
const QString &sql, QString &error
SIP_OUT,
bool isDirty =
false,
const QString &name = QString() ) = 0;
136 QString createSavepoint( QString &error
SIP_OUT );
142 virtual QString createSavepoint(
const QString &savePointId, QString &error
SIP_OUT );
147 virtual bool rollbackToSavepoint(
const QString &name, QString &error
SIP_OUT );
152 void dirtyLastSavePoint();
157 QList< QString >
savePoints()
const {
return QList< QString >::fromVector( mSavepoints ); }
166 static QString connectionString(
const QString &layerUri )
SIP_SKIP;
179 void dirtied(
const QString &sql,
const QString &name );
190 void onLayerDeleted();
194 QSet<QgsVectorLayer *> mLayers;
198 static QString cleanupConnectionString(
const QString &str );
200 virtual bool beginTransaction( QString &error,
int statementTimeout ) = 0;
201 virtual bool commitTransaction( QString &error ) = 0;
202 virtual bool rollbackTransaction( QString &error ) = 0;