sekejap 0.16.1 → 0.16.2
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/index.d.ts
CHANGED
|
@@ -18,6 +18,21 @@ export declare class Db {
|
|
|
18
18
|
query(sql: string): string
|
|
19
19
|
/** Parameterized SELECT ($1, $2, …); `paramsJson` is a JSON array string. */
|
|
20
20
|
queryParams(sql: string, paramsJson: string): string
|
|
21
|
+
/**
|
|
22
|
+
* Parameterized mutating statement ($1, $2, …); `paramsJson` is a JSON array
|
|
23
|
+
* string. Returns affected rows. The typed layer's update/delete lower here.
|
|
24
|
+
*/
|
|
25
|
+
executeParams(sql: string, paramsJson: string): number
|
|
26
|
+
/**
|
|
27
|
+
* Subscribe to the change feed. `callback` is invoked once per committed
|
|
28
|
+
* mutation (a transaction fires once, at COMMIT) with a JSON string
|
|
29
|
+
* `{"collections":[…],"keys":[…],"edge_types":[…]}`. Returns a subscription
|
|
30
|
+
* id; pass it to [`unwatch`] to stop. The napi ThreadsafeFunction marshals
|
|
31
|
+
* the call onto the JS event loop, so no manual threading is needed.
|
|
32
|
+
*/
|
|
33
|
+
watch(callback: (arg: string) => any): number
|
|
34
|
+
/** Stop a change-feed subscription created by [`watch`]. */
|
|
35
|
+
unwatch(id: number): void
|
|
21
36
|
/** Compile a query once for repeated execution — a prepared statement. */
|
|
22
37
|
prepare(sql: string): PreparedStatement
|
|
23
38
|
/**
|
package/package.json
CHANGED
|
@@ -1,24 +1,76 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sekejap",
|
|
3
|
-
"version": "0.16.
|
|
4
|
-
"description": "Embedded graph-first multi-model database — Node.js binding",
|
|
3
|
+
"version": "0.16.2",
|
|
4
|
+
"description": "Embedded graph-first multi-model database — Node.js & React Native binding",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"repository": "github:sekejapdb/sekejap",
|
|
7
|
-
"homepage": "https://sekejap.
|
|
8
|
-
"keywords": [
|
|
7
|
+
"homepage": "https://sekejap.life",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"database",
|
|
10
|
+
"graph",
|
|
11
|
+
"vector",
|
|
12
|
+
"spatial",
|
|
13
|
+
"embedded",
|
|
14
|
+
"multi-model",
|
|
15
|
+
"typescript",
|
|
16
|
+
"react-native"
|
|
17
|
+
],
|
|
9
18
|
"main": "index.js",
|
|
10
19
|
"types": "index.d.ts",
|
|
11
|
-
"
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./index.d.ts",
|
|
23
|
+
"default": "./index.js"
|
|
24
|
+
},
|
|
25
|
+
"./orm": {
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"default": "./dist/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./orm/react": {
|
|
30
|
+
"types": "./dist/react.d.ts",
|
|
31
|
+
"default": "./dist/react.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"index.js",
|
|
36
|
+
"index.d.ts",
|
|
37
|
+
"*.node",
|
|
38
|
+
"dist/",
|
|
39
|
+
"README.md"
|
|
40
|
+
],
|
|
12
41
|
"napi": {
|
|
13
42
|
"name": "sekejap"
|
|
14
43
|
},
|
|
15
|
-
"engines": {
|
|
16
|
-
|
|
17
|
-
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">= 16"
|
|
46
|
+
},
|
|
47
|
+
"os": [
|
|
48
|
+
"darwin",
|
|
49
|
+
"linux",
|
|
50
|
+
"win32"
|
|
51
|
+
],
|
|
52
|
+
"cpu": [
|
|
53
|
+
"x64",
|
|
54
|
+
"arm64"
|
|
55
|
+
],
|
|
18
56
|
"scripts": {
|
|
19
|
-
"build": "napi build --platform --release"
|
|
57
|
+
"build": "napi build --platform --release",
|
|
58
|
+
"build:orm": "tsc -p orm/tsconfig.build.json",
|
|
59
|
+
"test:orm": "tsx orm/orm.test.ts"
|
|
60
|
+
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"react": ">=17"
|
|
63
|
+
},
|
|
64
|
+
"peerDependenciesMeta": {
|
|
65
|
+
"react": {
|
|
66
|
+
"optional": true
|
|
67
|
+
}
|
|
20
68
|
},
|
|
21
69
|
"devDependencies": {
|
|
22
|
-
"@napi-rs/cli": "^2.18.0"
|
|
70
|
+
"@napi-rs/cli": "^2.18.0",
|
|
71
|
+
"@types/node": "^20.19.43",
|
|
72
|
+
"@types/react": "^18.3.31",
|
|
73
|
+
"tsx": "^4.19.0",
|
|
74
|
+
"typescript": "^5.6.3"
|
|
23
75
|
}
|
|
24
76
|
}
|
|
Binary file
|
package/sekejap.darwin-x64.node
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|