@rivetkit/rivetkit-native 0.0.0-pr.4673.7822905 → 0.0.0-pr.4673.bd7bc7b

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.
Files changed (2) hide show
  1. package/index.d.ts +9 -0
  2. 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.7822905",
3
+ "version": "0.0.0-pr.4673.bd7bc7b",
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.7822905"
52
+ "@rivetkit/engine-envoy-protocol": "0.0.0-pr.4673.bd7bc7b"
53
53
  },
54
54
  "optionalDependencies": {
55
- "@rivetkit/rivetkit-native-darwin-arm64": "0.0.0-pr.4673.7822905",
56
- "@rivetkit/rivetkit-native-darwin-x64": "0.0.0-pr.4673.7822905",
57
- "@rivetkit/rivetkit-native-linux-arm64-gnu": "0.0.0-pr.4673.7822905",
58
- "@rivetkit/rivetkit-native-linux-arm64-musl": "0.0.0-pr.4673.7822905",
59
- "@rivetkit/rivetkit-native-linux-x64-gnu": "0.0.0-pr.4673.7822905",
60
- "@rivetkit/rivetkit-native-linux-x64-musl": "0.0.0-pr.4673.7822905",
61
- "@rivetkit/rivetkit-native-win32-x64-msvc": "0.0.0-pr.4673.7822905"
55
+ "@rivetkit/rivetkit-native-darwin-arm64": "0.0.0-pr.4673.bd7bc7b",
56
+ "@rivetkit/rivetkit-native-darwin-x64": "0.0.0-pr.4673.bd7bc7b",
57
+ "@rivetkit/rivetkit-native-linux-arm64-gnu": "0.0.0-pr.4673.bd7bc7b",
58
+ "@rivetkit/rivetkit-native-linux-arm64-musl": "0.0.0-pr.4673.bd7bc7b",
59
+ "@rivetkit/rivetkit-native-linux-x64-gnu": "0.0.0-pr.4673.bd7bc7b",
60
+ "@rivetkit/rivetkit-native-linux-x64-musl": "0.0.0-pr.4673.bd7bc7b",
61
+ "@rivetkit/rivetkit-native-win32-x64-msvc": "0.0.0-pr.4673.bd7bc7b"
62
62
  }
63
63
  }