@capgo/capacitor-fast-sql 7.2.5 → 7.2.7

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
@@ -8,6 +8,16 @@
8
8
 
9
9
  High-performance native SQLite plugin with HTTP server for efficient sync operations and IndexedDB replacement.
10
10
 
11
+ ## Why Fast SQL?
12
+
13
+ Traditional Capacitor plugins serialize data through the JavaScript bridge, which becomes inefficient with large datasets. Fast SQL solves this by establishing a local HTTP server for direct native communication, making it ideal for:
14
+
15
+ - **Local-first sync systems** (CRDTs, operational transforms)
16
+ - **IndexedDB replacement** on platforms with broken/limited implementations
17
+ - **Large dataset operations** requiring high throughput
18
+ - **Batch operations** with thousands of rows
19
+ - **Binary data storage** (BLOBs, files)
20
+
11
21
  ## Documentation
12
22
 
13
23
  The most complete doc is available here: https://capgo.app/docs/plugins/fast-sql/
@@ -19,7 +19,7 @@ import java.util.Map;
19
19
  @CapacitorPlugin(name = "CapgoCapacitorFastSql")
20
20
  public class CapgoCapacitorFastSqlPlugin extends Plugin {
21
21
 
22
- private final String PLUGIN_VERSION = "7.2.5";
22
+ private final String pluginVersion = "7.2.7";
23
23
 
24
24
  private Map<String, SQLDatabase> databases = new HashMap<>();
25
25
  private SQLHTTPServer server;
@@ -217,7 +217,7 @@ public class CapgoCapacitorFastSqlPlugin extends Plugin {
217
217
  @PluginMethod
218
218
  public void getPluginVersion(PluginCall call) {
219
219
  JSObject ret = new JSObject();
220
- ret.put("version", PLUGIN_VERSION);
220
+ ret.put("version", pluginVersion);
221
221
  call.resolve(ret);
222
222
  }
223
223
 
@@ -10,7 +10,7 @@ import SQLite3
10
10
  */
11
11
  @objc(CapgoCapacitorFastSqlPlugin)
12
12
  public class CapgoCapacitorFastSqlPlugin: CAPPlugin, CAPBridgedPlugin {
13
- private let PLUGIN_VERSION: String = "7.2.5"
13
+ private let pluginVersion: String = "7.2.7"
14
14
  public let identifier = "CapgoCapacitorFastSqlPlugin"
15
15
  public let jsName = "CapgoCapacitorFastSql"
16
16
  public let pluginMethods: [CAPPluginMethod] = [
@@ -204,7 +204,7 @@ public class CapgoCapacitorFastSqlPlugin: CAPPlugin, CAPBridgedPlugin {
204
204
 
205
205
  @objc func getPluginVersion(_ call: CAPPluginCall) {
206
206
  call.resolve([
207
- "version": PLUGIN_VERSION
207
+ "version": pluginVersion
208
208
  ])
209
209
  }
210
210
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-fast-sql",
3
- "version": "7.2.5",
3
+ "version": "7.2.7",
4
4
  "description": "High-performance native SQLite plugin with custom protocol for efficient sync operations and IndexedDB replacement",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",