@rivetkit/rivetkit-napi 0.0.0-pr.4879.d508104 → 0.0.0-pr.4880.b43a278
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 +9 -8
- package/package.json +9 -9
package/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export interface JsActorConfig {
|
|
|
51
51
|
name?: string
|
|
52
52
|
icon?: string
|
|
53
53
|
hasDatabase?: boolean
|
|
54
|
+
remoteSqlite?: boolean
|
|
54
55
|
hasState?: boolean
|
|
55
56
|
canHibernateWebsocket?: boolean
|
|
56
57
|
stateSaveIntervalMs?: number
|
|
@@ -92,13 +93,12 @@ export interface QueryResult {
|
|
|
92
93
|
columns: Array<string>
|
|
93
94
|
rows: Array<Array<any>>
|
|
94
95
|
}
|
|
95
|
-
export interface
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
commitCount: number
|
|
96
|
+
export interface NativeExecuteResult {
|
|
97
|
+
columns: Array<string>
|
|
98
|
+
rows: Array<Array<any>>
|
|
99
|
+
changes: number
|
|
100
|
+
lastInsertRowId?: number
|
|
101
|
+
route: string
|
|
102
102
|
}
|
|
103
103
|
export interface JsQueueNextOptions {
|
|
104
104
|
names?: Array<string>
|
|
@@ -246,9 +246,10 @@ export declare class ConnHandle {
|
|
|
246
246
|
}
|
|
247
247
|
export declare class JsNativeDatabase {
|
|
248
248
|
takeLastKvError(): string | null
|
|
249
|
-
getSqliteVfsMetrics(): JsSqliteVfsMetrics | null
|
|
250
249
|
run(sql: string, params?: Array<JsBindParam> | undefined | null): Promise<ExecuteResult>
|
|
251
250
|
query(sql: string, params?: Array<JsBindParam> | undefined | null): Promise<QueryResult>
|
|
251
|
+
execute(sql: string, params?: Array<JsBindParam> | undefined | null): Promise<NativeExecuteResult>
|
|
252
|
+
executeWrite(sql: string, params?: Array<JsBindParam> | undefined | null): Promise<NativeExecuteResult>
|
|
252
253
|
exec(sql: string): Promise<QueryResult>
|
|
253
254
|
close(): Promise<void>
|
|
254
255
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/rivetkit-napi",
|
|
3
|
-
"version": "0.0.0-pr.
|
|
3
|
+
"version": "0.0.0-pr.4880.b43a278",
|
|
4
4
|
"description": "Native N-API addon for RivetKit providing envoy client and SQLite access",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "index.js",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@napi-rs/cli": "^2.18.4",
|
|
46
|
-
"@rivetkit/engine-envoy-protocol": "0.0.0-pr.
|
|
46
|
+
"@rivetkit/engine-envoy-protocol": "0.0.0-pr.4880.b43a278"
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@rivetkit/rivetkit-napi-darwin-arm64": "0.0.0-pr.
|
|
50
|
-
"@rivetkit/rivetkit-napi-darwin-x64": "0.0.0-pr.
|
|
51
|
-
"@rivetkit/rivetkit-napi-linux-arm64-gnu": "0.0.0-pr.
|
|
52
|
-
"@rivetkit/rivetkit-napi-linux-arm64-musl": "0.0.0-pr.
|
|
53
|
-
"@rivetkit/rivetkit-napi-linux-x64-gnu": "0.0.0-pr.
|
|
54
|
-
"@rivetkit/rivetkit-napi-linux-x64-musl": "0.0.0-pr.
|
|
55
|
-
"@rivetkit/rivetkit-napi-win32-x64-msvc": "0.0.0-pr.
|
|
49
|
+
"@rivetkit/rivetkit-napi-darwin-arm64": "0.0.0-pr.4880.b43a278",
|
|
50
|
+
"@rivetkit/rivetkit-napi-darwin-x64": "0.0.0-pr.4880.b43a278",
|
|
51
|
+
"@rivetkit/rivetkit-napi-linux-arm64-gnu": "0.0.0-pr.4880.b43a278",
|
|
52
|
+
"@rivetkit/rivetkit-napi-linux-arm64-musl": "0.0.0-pr.4880.b43a278",
|
|
53
|
+
"@rivetkit/rivetkit-napi-linux-x64-gnu": "0.0.0-pr.4880.b43a278",
|
|
54
|
+
"@rivetkit/rivetkit-napi-linux-x64-musl": "0.0.0-pr.4880.b43a278",
|
|
55
|
+
"@rivetkit/rivetkit-napi-win32-x64-msvc": "0.0.0-pr.4880.b43a278"
|
|
56
56
|
}
|
|
57
57
|
}
|