@capgo/capacitor-fast-sql 8.1.1 → 8.2.1
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 +66 -31
- package/android/build.gradle +2 -2
- package/android/src/main/java/app/capgo/capacitor/fastsql/CapgoCapacitorFastSqlPlugin.java +1 -1
- package/dist/esm/definitions.d.ts +23 -17
- package/dist/esm/definitions.d.ts.map +1 -1
- package/dist/esm/web.d.ts +9 -26
- package/dist/esm/web.d.ts.map +1 -1
- package/dist/esm/web.js +90 -144
- package/dist/plugin.cjs.js +90 -158
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +15878 -155
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/CapgoCapacitorFastSqlPlugin/CapgoCapacitorFastSqlPlugin.swift +1 -1
- package/package.json +7 -3
- package/dist/esm/performance-config.d.ts +0 -8
- package/dist/esm/performance-config.d.ts.map +0 -1
- package/dist/esm/performance-config.js +0 -14
|
@@ -10,7 +10,7 @@ import SQLite3
|
|
|
10
10
|
*/
|
|
11
11
|
@objc(CapgoCapacitorFastSqlPlugin)
|
|
12
12
|
public class CapgoCapacitorFastSqlPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
13
|
-
private let pluginVersion: String = "8.
|
|
13
|
+
private let pluginVersion: String = "8.2.1"
|
|
14
14
|
public let identifier = "CapgoCapacitorFastSqlPlugin"
|
|
15
15
|
public let jsName = "CapgoCapacitorFastSql"
|
|
16
16
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-fast-sql",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.1",
|
|
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",
|
|
@@ -56,6 +56,9 @@
|
|
|
56
56
|
"example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build",
|
|
57
57
|
"changelog:ai": "node scripts/generate-ai-changelog.mjs"
|
|
58
58
|
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@sqlite.org/sqlite-wasm": "3.53.0-build1"
|
|
61
|
+
},
|
|
59
62
|
"devDependencies": {
|
|
60
63
|
"@capacitor/android": "^8.0.0",
|
|
61
64
|
"@capacitor/cli": "^8.0.0",
|
|
@@ -65,17 +68,18 @@
|
|
|
65
68
|
"@ionic/eslint-config": "^0.4.0",
|
|
66
69
|
"@ionic/prettier-config": "^4.0.0",
|
|
67
70
|
"@ionic/swiftlint-config": "^2.0.0",
|
|
71
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
68
72
|
"@types/node": "^24.10.1",
|
|
69
73
|
"eslint": "^8.57.1",
|
|
70
74
|
"eslint-plugin-import": "^2.31.0",
|
|
71
75
|
"husky": "^9.1.7",
|
|
72
76
|
"prettier": "^3.6.2",
|
|
73
77
|
"prettier-plugin-java": "^2.7.7",
|
|
78
|
+
"prettier-pretty-check": "^0.2.0",
|
|
74
79
|
"rimraf": "^6.1.0",
|
|
75
80
|
"rollup": "^4.53.2",
|
|
76
81
|
"swiftlint": "^2.0.0",
|
|
77
|
-
"typescript": "^5.9.3"
|
|
78
|
-
"prettier-pretty-check": "^0.2.0"
|
|
82
|
+
"typescript": "^5.9.3"
|
|
79
83
|
},
|
|
80
84
|
"peerDependencies": {
|
|
81
85
|
"@capacitor/core": ">=8.0.0"
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SQLConnectionOptions } from './definitions';
|
|
2
|
-
/**
|
|
3
|
-
* Apply optional SQLite performance PRAGMAs after opening a database.
|
|
4
|
-
*/
|
|
5
|
-
export declare function applyPerformanceConfig(db: {
|
|
6
|
-
run: (sql: string) => void;
|
|
7
|
-
}, options: SQLConnectionOptions): void;
|
|
8
|
-
//# sourceMappingURL=performance-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"performance-config.d.ts","sourceRoot":"","sources":["../../src/performance-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE1D;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,EAAE;IAAE,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,EAAE,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAY9G"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Apply optional SQLite performance PRAGMAs after opening a database.
|
|
3
|
-
*/
|
|
4
|
-
export function applyPerformanceConfig(db, options) {
|
|
5
|
-
db.run('PRAGMA foreign_keys = ON');
|
|
6
|
-
if (options.walMode) {
|
|
7
|
-
db.run('PRAGMA journal_mode = WAL');
|
|
8
|
-
}
|
|
9
|
-
if (options.performancePresets) {
|
|
10
|
-
db.run('PRAGMA synchronous = NORMAL');
|
|
11
|
-
db.run('PRAGMA busy_timeout = 5000');
|
|
12
|
-
db.run('PRAGMA cache_size = -2000');
|
|
13
|
-
}
|
|
14
|
-
}
|