aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/dbversionconverter.h
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2018-07-27 23:54:15 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2018-07-27 23:54:15 -0400
commit6d3d39356473078c6b47e03b8a7616e4b34de928 (patch)
treefe5be2e6a08e4cfc73207746aba4c9fccfecfa10 /SQLiteStudio3/coreSQLiteStudio/dbversionconverter.h
parentf98e49169a40876bcf1df832de6e908d1b350193 (diff)
parentfeda8a7db8d1d7c5439aa8f8feef7cc0dd2b59a0 (diff)
Update upstream source from tag 'upstream/3.2.1+dfsg1'
Update to upstream version '3.2.1+dfsg1' with Debian dir 5ea0333565de4dc898c062cc0ff4ba1153e2c1e4
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/dbversionconverter.h')
-rw-r--r--SQLiteStudio3/coreSQLiteStudio/dbversionconverter.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/SQLiteStudio3/coreSQLiteStudio/dbversionconverter.h b/SQLiteStudio3/coreSQLiteStudio/dbversionconverter.h
index 9486f1b..5fafc93 100644
--- a/SQLiteStudio3/coreSQLiteStudio/dbversionconverter.h
+++ b/SQLiteStudio3/coreSQLiteStudio/dbversionconverter.h
@@ -127,6 +127,21 @@ class API_EXPORT DbVersionConverter : public QObject
bool interrupted = false;
QMutex interruptMutex;
+ /**
+ * @brief Whether to include non-DDL statements in diff list.
+ *
+ * The non-DDL statements are INSERTs, SELECTs, etc.
+ * Normally, for DB conversion we only care about DDL modifications,
+ * that is for CREATE statements. Other statements may appear inside of
+ * triggers or views, but we don't need their diffs separately.
+ *
+ * This variable is not used currently, but may be in future,
+ * when for example individual INSERT statement would need to be converted.
+ * Right now there's no such need, but it would be pity to remove the code
+ * from that non-DDL statements.
+ */
+ bool diffsForNonDDL = false;
+
private slots:
void conversionError(Db* db, const QString& errMsg);
void confirmConversion();