@capacitor-community/sqlite 4.6.3-1 → 4.6.3-3
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
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<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>
|
|
17
17
|
<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>
|
|
18
18
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
19
|
-
<a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-
|
|
19
|
+
<a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-31-orange?style=flat-square" /></a>
|
|
20
20
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
21
21
|
</p>
|
|
22
22
|
|
|
@@ -344,6 +344,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
344
344
|
<a href="https://github.com/fizdalf" title="fizdalf"><img src="https://github.com/fizdalf.png?size=100" width="50" height="50" /></a>
|
|
345
345
|
<a href="https://github.com/Micha-Richter" title="Micha-Richter"><img src="https://github.com/Micha-Richter.png?size=100" width="50" height="50" /></a>
|
|
346
346
|
<a href="https://github.com/ws-rush" title="ws-rush"><img src="https://github.com/ws-rush.png?size=100" width="50" height="50" /></a>
|
|
347
|
+
<a href="https://github.com/eppineda" title="eppineda"><img src="https://github.com/eppineda.png?size=100" width="50" height="50" /></a>
|
|
348
|
+
<a href="https://github.com/patdx" title="patdx"><img src="https://github.com/patdx.png?size=100" width="50" height="50" /></a>
|
|
347
349
|
</p>
|
|
348
350
|
|
|
349
351
|
|
package/android/src/main/java/com/getcapacitor/community/database/sqlite/SQLite/UtilsSQLite.java
CHANGED
|
@@ -63,7 +63,18 @@ public class UtilsSQLite {
|
|
|
63
63
|
String[] array = sqlCmdArray[i].split("\n");
|
|
64
64
|
StringBuilder builder = new StringBuilder();
|
|
65
65
|
for (String s : array) {
|
|
66
|
-
|
|
66
|
+
String line = s.trim();
|
|
67
|
+
int idx = line.indexOf("--");
|
|
68
|
+
if(idx > -1) {
|
|
69
|
+
line = line.substring(0, idx);
|
|
70
|
+
}
|
|
71
|
+
if(line.length() > 0) {
|
|
72
|
+
if (builder.length() > 0) {
|
|
73
|
+
builder.append(" ");
|
|
74
|
+
}
|
|
75
|
+
builder.append(line);
|
|
76
|
+
}
|
|
77
|
+
|
|
67
78
|
}
|
|
68
79
|
sqlCmdArray[i] = builder.toString();
|
|
69
80
|
}
|