@capacitor-community/sqlite 5.4.2-1 → 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
@@ -18,7 +18,7 @@
18
18
  <a href="https://www.npmjs.com/package/@capacitor-community/sqlite"><img src="https://img.shields.io/npm/dw/@capacitor-community/sqlite?style=flat-square" /></a>
19
19
  <a href="https://www.npmjs.com/package/@capacitor-community/sqlite"><img src="https://img.shields.io/npm/v/@capacitor-community/sqlite?style=flat-square" /></a>
20
20
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
21
- <a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-37-orange?style=flat-square" /></a>
21
+ <a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-38-orange?style=flat-square" /></a>
22
22
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
23
23
  </p>
24
24
 
@@ -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://capacitorjs.com/docs/IncrementalUpgradeDatabaseVersion.md)
97
+ - [IncrementalUpgradeDatabaseVersion](https://github.com/capacitor-community/sqlite/blob/master/docs/IncrementalUpgradeDatabaseVersion.md)
98
98
 
99
99
 
100
100
  ## Tutorials Blog
@@ -298,54 +298,55 @@ npm install --save-dev electron-builder@24.6.4
298
298
 
299
299
  ### Ionic/Angular
300
300
 
301
- - [Ionic/Angular Usage Documentation](https://github.com/capacitor-community/sqlite/blob/master/docs/Ionic-Angular-Usage.md)
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-starter](https://github.com/jepiqueau/ionic7-angular-sqlite-starter) Ionic 7 Angular 16 Capacitor 5 SQLite CRUD operations.
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-starter](https://github.com/jepiqueau/angular-sqlite-app-starter) This one is now more for testing the issues.
305
+ - [angular-sqlite-synchronize-app](https://github.com/jepiqueau/angular-sqlite-synchronize-app) (Not Updated)
306
306
 
307
- - [angular-sqlite-synchronize-app](https://github.com/jepiqueau/angular-sqlite-synchronize-app)
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
- - [Ionic/React Usage Documentation](https://github.com/capacitor-community/sqlite/blob/master/docs/Ionic-React-Usage.md)
316
-
317
- - [react-sqlite-app-starter](https://github.com/jepiqueau/react-sqlite-app-starter)
318
-
319
- ### React+Vite
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.
320
314
 
321
- - [react-vite-sqlite-app](https://github.com/jepiqueau/react-vite-sqlite-app)
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.
322
316
 
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
- - [Ionic/Vue Usage Documentation](https://github.com/capacitor-community/sqlite/blob/master/docs/Ionic-Vue-Usage.md)
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-starter](https://github.com/jepiqueau/vue-sqlite-app-starter)
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
331
 
339
- - [vite-vue-sqlite-app](https://github.com/jepiqueau/vite-vue-sqlite-app)
340
-
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
 
340
+ ### Nuxt3 + Kysely
341
+
342
+ - [nuxt3-capacitor-sqlite-kysely-example](https://github.com/DawidWetzler/nuxt3-capacitor-sqlite-kysely-example)
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
+
349
350
 
350
351
  ## Dependencies
351
352
 
@@ -398,8 +399,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
398
399
  <a href="https://github.com/pranav-singhal" title="pranav-singhal"><img src="https://github.com/pranav-singhal.png?size=100" width="50" height="50" /></a>
399
400
  <a href="https://github.com/beligatclement" title="beligatclement"><img src="https://github.com/beligatclement.png?size=100" width="50" height="50" /></a>
400
401
  <a href="https://github.com/cosentino" title="cosentino"><img src="https://avatars.githubusercontent.com/u/376903?s=48&v=4" width="50" height="50" /></a>
401
- <a href="https://github.com/Guiqft" title="cosentino"><img src="https://avatars.githubusercontent.com/u/9392803?v=4" width="50" height="50" /></a>
402
- </p>
402
+ <a href="https://github.com/Guiqft" title="Guiqft"><img src="https://avatars.githubusercontent.com/u/9392803?v=4" width="50" height="50" /></a>
403
+ <a href="https://github.com/DawidWetzler" title="DawidWetzler"><img src="https://avatars.githubusercontent.com/u/49675685?v=4" width="50" height="50" /></a>
404
+ </p>
403
405
 
404
406
 
405
407
  <!-- markdownlint-enable -->
@@ -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
- return "'" + item + "'";
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("'").append(item).append("'");
477
+ formattedRow.append('"').append(item).append('"');
476
478
  } else {
477
479
  formattedRow.append(item);
478
480
  }
@@ -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.4.2-1",
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.4.2",
63
- "@capacitor/cli": "^5.4.2",
64
- "@capacitor/core": "^5.4.2",
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.4.2",
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.3"
100
+ "jeep-sqlite": "^2.5.4"
101
101
  }
102
102
  }