@capacitor-community/sqlite 5.4.2-2 → 5.5.0
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/README.md
CHANGED
|
@@ -94,7 +94,7 @@ export default config;
|
|
|
94
94
|
- [Issues](https://github.com/capacitor-community/sqlite/issues)
|
|
95
95
|
- [Capacitor documentation](https://capacitorjs.com/docs/)
|
|
96
96
|
- [Datatypes In SQLite Version 3](https://www.sqlite.org/datatype3.html)
|
|
97
|
-
- [IncrementalUpgradeDatabaseVersion](https://
|
|
97
|
+
- [IncrementalUpgradeDatabaseVersion](https://github.com/capacitor-community/sqlite/blob/master/docs/IncrementalUpgradeDatabaseVersion.md)
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
## Tutorials Blog
|
|
@@ -298,51 +298,42 @@ npm install --save-dev electron-builder@24.6.4
|
|
|
298
298
|
|
|
299
299
|
### Ionic/Angular
|
|
300
300
|
|
|
301
|
-
- [
|
|
301
|
+
- [Web ionic7-angular-sqlite-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-1/ionic7-angular-sqlite-app) Ionic 7 Angular 16 Capacitor 5 SQLite CRUD operations for Web.
|
|
302
302
|
|
|
303
|
-
- [ionic7-angular-sqlite-
|
|
303
|
+
- [Native ionic7-angular-sqlite-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-2/ionic7-angular-sqlite-app) Ionic 7 Angular 16 Capacitor 5 SQLite CRUD operations for iOS, Android and Electron.
|
|
304
304
|
|
|
305
|
-
- [angular-sqlite-app
|
|
305
|
+
- [angular-sqlite-synchronize-app](https://github.com/jepiqueau/angular-sqlite-synchronize-app) (Not Updated)
|
|
306
306
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
### Ionic/Angular TypeORM app
|
|
307
|
+
### Ionic/Angular TypeORM app (Not Updated)
|
|
310
308
|
|
|
311
309
|
- [ionic-sqlite-typeorm-app](https://github.com/jepiqueau/ionic-sqlite-typeorm-app)
|
|
312
310
|
|
|
313
311
|
### Ionic/React
|
|
314
312
|
|
|
315
|
-
- [
|
|
316
|
-
|
|
317
|
-
- [react-sqlite-app-starter](https://github.com/jepiqueau/react-sqlite-app-starter)
|
|
313
|
+
- [Web ionic7-react-sqlite-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-1/ionic7-react-sqlite-app) Ionic7 React18.2.0 Vite4.3.9 Capacitor 5 SQLite CRUD operations for Web.
|
|
318
314
|
|
|
319
|
-
|
|
315
|
+
- [Web ionic7-react-sqlite-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-2/ionic7-react-sqlite-app) Ionic7 React18.2.0 Vite4.3.9 Capacitor 5 SQLite CRUD operations for iOS, Android and Electron.
|
|
320
316
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
### Ionic/React Capacitor SQLite + TypeORM Example App
|
|
317
|
+
### Ionic/React Capacitor SQLite + TypeORM Example App
|
|
324
318
|
|
|
325
319
|
- [capacitor-sqlite-react-typeorm-app](https://github.com/cosentino/capacitor-sqlite-react-typeorm-app)
|
|
326
320
|
|
|
327
321
|
### Ionic/Vue
|
|
328
322
|
|
|
329
|
-
- [
|
|
323
|
+
- [Web ionic7-vue-sqlite-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-1/ionic7-vue-sqlite-app) Ionic7 Vue3.2.45 Vite4.3.9 Capacitor 5 SQLite CRUD operations for Web.
|
|
330
324
|
|
|
331
|
-
- [vue-sqlite-app
|
|
325
|
+
- [Web ionic7-vue-sqlite-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-2/ionic7-vue-sqlite-app) Ionic7 Vue3.2.45 Vite4.3.9 Capacitor 5 SQLite CRUD operations for iOS, Android and Electron.
|
|
332
326
|
|
|
333
|
-
### Vue
|
|
327
|
+
### Vue (Not Updated)
|
|
334
328
|
|
|
335
329
|
- [vue-sqlite-app](https://github.com/jepiqueau/vue-sqlite-app)
|
|
336
330
|
|
|
337
|
-
### Vue+Vite
|
|
338
|
-
|
|
339
|
-
- [vite-vue-sqlite-app](https://github.com/jepiqueau/vite-vue-sqlite-app)
|
|
340
331
|
|
|
341
|
-
### Vue TypeORM app
|
|
332
|
+
### Vue TypeORM app (Not Updated)
|
|
342
333
|
|
|
343
334
|
- [vue-typeorm-app](https://github.com/jepiqueau/vue-typeorm-app)
|
|
344
335
|
|
|
345
|
-
### SolidJS+Vite
|
|
336
|
+
### SolidJS+Vite (Not Updated)
|
|
346
337
|
|
|
347
338
|
- [solidjs-vite-sqlite-app](https://github.com/jepiqueau/capacitor-solid-sqlite)
|
|
348
339
|
|
|
@@ -350,6 +341,13 @@ npm install --save-dev electron-builder@24.6.4
|
|
|
350
341
|
|
|
351
342
|
- [nuxt3-capacitor-sqlite-kysely-example](https://github.com/DawidWetzler/nuxt3-capacitor-sqlite-kysely-example)
|
|
352
343
|
|
|
344
|
+
### Quasar
|
|
345
|
+
|
|
346
|
+
- [Web quasar-sqlite-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-1/quasar-sqlite-app) Quasar2.6.0 Capacitor 5 SQLite CRUD operations for Web.
|
|
347
|
+
|
|
348
|
+
- [Web quasar-sqlite-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-2/quasar-sqlite-app) Quasar2.6.0 Capacitor 5 SQLite CRUD operations for iOS, Android and Electron.
|
|
349
|
+
|
|
350
|
+
|
|
353
351
|
## Dependencies
|
|
354
352
|
|
|
355
353
|
The iOS and Android codes are using `SQLCipher` allowing for database encryption.
|
|
@@ -458,7 +458,9 @@ public class ImportFromJson {
|
|
|
458
458
|
String formattedRow = null;
|
|
459
459
|
formattedRow = String.join(", ", rowIndex.stream().map(item -> {
|
|
460
460
|
if (item instanceof String) {
|
|
461
|
-
|
|
461
|
+
StringBuilder formattedValue = new StringBuilder();
|
|
462
|
+
formattedValue.append('"').append(item).append('"');
|
|
463
|
+
return formattedValue.toString();
|
|
462
464
|
} else {
|
|
463
465
|
return item.toString();
|
|
464
466
|
}
|
|
@@ -472,7 +474,7 @@ public class ImportFromJson {
|
|
|
472
474
|
}
|
|
473
475
|
Object item = rowIndex.get(i);
|
|
474
476
|
if (item instanceof String) {
|
|
475
|
-
formattedRow.append("'
|
|
477
|
+
formattedRow.append('"').append(item).append('"');
|
|
476
478
|
} else {
|
|
477
479
|
formattedRow.append(item);
|
|
478
480
|
}
|
package/android/src/main/java/com/getcapacitor/community/database/sqlite/SQLite/UtilsMigrate.java
CHANGED
|
@@ -168,7 +168,7 @@ public class UtilsMigrate {
|
|
|
168
168
|
toFile = file.replace(".db", "SQLite.db");
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
if (toFile.length() > 0) {
|
|
171
|
+
if (toFile.length() > 0) {
|
|
172
172
|
boolean ret = new File(pathFiles, fromFile).renameTo(new File(pathDB, toFile));
|
|
173
173
|
if (!ret) {
|
|
174
174
|
String msg = "Failed in move " + fromFile + " to " + file;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor-community/sqlite",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"description": "Community plugin for native & electron SQLite databases",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"prepublishOnly": "npm run build && npm run build-electron && npm run docgen"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@capacitor/android": "^5.
|
|
63
|
-
"@capacitor/cli": "^5.
|
|
64
|
-
"@capacitor/core": "^5.
|
|
62
|
+
"@capacitor/android": "^5.5.0",
|
|
63
|
+
"@capacitor/cli": "^5.5.0",
|
|
64
|
+
"@capacitor/core": "^5.5.0",
|
|
65
65
|
"@capacitor/docgen": "^0.0.17",
|
|
66
|
-
"@capacitor/ios": "^5.
|
|
66
|
+
"@capacitor/ios": "^5.5.0",
|
|
67
67
|
"@ionic/eslint-config": "^0.3.0",
|
|
68
68
|
"@ionic/prettier-config": "^1.0.1",
|
|
69
69
|
"@ionic/swiftlint-config": "^1.1.2",
|
|
@@ -97,6 +97,6 @@
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
|
-
"jeep-sqlite": "^2.5.
|
|
100
|
+
"jeep-sqlite": "^2.5.4"
|
|
101
101
|
}
|
|
102
102
|
}
|