@capacitor-community/sqlite 5.0.3-2.test1 → 5.0.3-2.test2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/electron/dist/plugin.js
CHANGED
|
@@ -4723,16 +4723,13 @@ class CapacitorSQLite {
|
|
|
4723
4723
|
const filePath = this.fileUtil.getFilePath(dbName + 'SQLite.db');
|
|
4724
4724
|
try {
|
|
4725
4725
|
const mDB = await this.sqliteUtil.openOrCreateDatabase(filePath, "", true);
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
}
|
|
4731
|
-
else {
|
|
4732
|
-
return Promise.resolve({ result: true });
|
|
4733
|
-
}
|
|
4726
|
+
const curVersion = await this.sqliteUtil.getVersion(mDB);
|
|
4727
|
+
console.log(`@@@@ UNENCRYPTED dbName: ${dbName} , mDB ${mDB}, curVersion ${curVersion}`);
|
|
4728
|
+
mDB.close();
|
|
4729
|
+
return Promise.resolve({ result: false });
|
|
4734
4730
|
}
|
|
4735
4731
|
catch (error) {
|
|
4732
|
+
console.log(`@@@@ ENCRYPTED dbName: ${dbName}`);
|
|
4736
4733
|
return Promise.resolve({ result: true });
|
|
4737
4734
|
}
|
|
4738
4735
|
}
|