@rivetkit/rivetkit-native 0.0.0-pr.4673.8cf118f → 0.0.0-pr.4673.c5be674
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 -0
- package/package.json +9 -9
package/index.d.ts
CHANGED
|
@@ -17,6 +17,14 @@ export interface QueryResult {
|
|
|
17
17
|
columns: Array<string>
|
|
18
18
|
rows: Array<Array<any>>
|
|
19
19
|
}
|
|
20
|
+
export interface JsSqliteVfsMetrics {
|
|
21
|
+
requestBuildNs: number
|
|
22
|
+
serializeNs: number
|
|
23
|
+
transportNs: number
|
|
24
|
+
stateUpdateNs: number
|
|
25
|
+
totalNs: number
|
|
26
|
+
commitCount: number
|
|
27
|
+
}
|
|
20
28
|
/** Open a native SQLite database backed by the envoy's KV channel. */
|
|
21
29
|
export declare function openDatabaseFromEnvoy(jsHandle: JsEnvoyHandle, actorId: string, preloadedEntries?: Array<JsKvEntry> | undefined | null): Promise<JsNativeDatabase>
|
|
22
30
|
/** Configuration for starting the native envoy client. */
|
|
@@ -60,6 +68,7 @@ export declare function startEnvoySyncJs(config: JsEnvoyConfig, eventCallback: (
|
|
|
60
68
|
export declare function startEnvoyJs(config: JsEnvoyConfig, eventCallback: (event: any) => void): JsEnvoyHandle
|
|
61
69
|
export declare class JsNativeDatabase {
|
|
62
70
|
takeLastKvError(): string | null
|
|
71
|
+
getSqliteVfsMetrics(): JsSqliteVfsMetrics | null
|
|
63
72
|
run(sql: string, params?: Array<JsBindParam> | undefined | null): Promise<ExecuteResult>
|
|
64
73
|
query(sql: string, params?: Array<JsBindParam> | undefined | null): Promise<QueryResult>
|
|
65
74
|
exec(sql: string): Promise<QueryResult>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/rivetkit-native",
|
|
3
|
-
"version": "0.0.0-pr.4673.
|
|
3
|
+
"version": "0.0.0-pr.4673.c5be674",
|
|
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",
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@napi-rs/cli": "^2.18.4",
|
|
52
|
-
"@rivetkit/engine-envoy-protocol": "0.0.0-pr.4673.
|
|
52
|
+
"@rivetkit/engine-envoy-protocol": "0.0.0-pr.4673.c5be674"
|
|
53
53
|
},
|
|
54
54
|
"optionalDependencies": {
|
|
55
|
-
"@rivetkit/rivetkit-native-darwin-arm64": "0.0.0-pr.4673.
|
|
56
|
-
"@rivetkit/rivetkit-native-darwin-x64": "0.0.0-pr.4673.
|
|
57
|
-
"@rivetkit/rivetkit-native-linux-arm64-gnu": "0.0.0-pr.4673.
|
|
58
|
-
"@rivetkit/rivetkit-native-linux-arm64-musl": "0.0.0-pr.4673.
|
|
59
|
-
"@rivetkit/rivetkit-native-linux-x64-gnu": "0.0.0-pr.4673.
|
|
60
|
-
"@rivetkit/rivetkit-native-linux-x64-musl": "0.0.0-pr.4673.
|
|
61
|
-
"@rivetkit/rivetkit-native-win32-x64-msvc": "0.0.0-pr.4673.
|
|
55
|
+
"@rivetkit/rivetkit-native-darwin-arm64": "0.0.0-pr.4673.c5be674",
|
|
56
|
+
"@rivetkit/rivetkit-native-darwin-x64": "0.0.0-pr.4673.c5be674",
|
|
57
|
+
"@rivetkit/rivetkit-native-linux-arm64-gnu": "0.0.0-pr.4673.c5be674",
|
|
58
|
+
"@rivetkit/rivetkit-native-linux-arm64-musl": "0.0.0-pr.4673.c5be674",
|
|
59
|
+
"@rivetkit/rivetkit-native-linux-x64-gnu": "0.0.0-pr.4673.c5be674",
|
|
60
|
+
"@rivetkit/rivetkit-native-linux-x64-musl": "0.0.0-pr.4673.c5be674",
|
|
61
|
+
"@rivetkit/rivetkit-native-win32-x64-msvc": "0.0.0-pr.4673.c5be674"
|
|
62
62
|
}
|
|
63
63
|
}
|