@rivetkit/rivetkit-napi 0.0.0-pr.4856.c68d9cb → 0.0.0-pr.4857.3a10f72

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 +8 -8
  2. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -92,13 +92,12 @@ export interface QueryResult {
92
92
  columns: Array<string>
93
93
  rows: Array<Array<any>>
94
94
  }
95
- export interface JsSqliteVfsMetrics {
96
- requestBuildNs: number
97
- serializeNs: number
98
- transportNs: number
99
- stateUpdateNs: number
100
- totalNs: number
101
- commitCount: number
95
+ export interface NativeExecuteResult {
96
+ columns: Array<string>
97
+ rows: Array<Array<any>>
98
+ changes: number
99
+ lastInsertRowId?: number
100
+ route: string
102
101
  }
103
102
  export interface JsQueueNextOptions {
104
103
  names?: Array<string>
@@ -246,9 +245,10 @@ export declare class ConnHandle {
246
245
  }
247
246
  export declare class JsNativeDatabase {
248
247
  takeLastKvError(): string | null
249
- getSqliteVfsMetrics(): JsSqliteVfsMetrics | null
250
248
  run(sql: string, params?: Array<JsBindParam> | undefined | null): Promise<ExecuteResult>
251
249
  query(sql: string, params?: Array<JsBindParam> | undefined | null): Promise<QueryResult>
250
+ execute(sql: string, params?: Array<JsBindParam> | undefined | null): Promise<NativeExecuteResult>
251
+ executeWrite(sql: string, params?: Array<JsBindParam> | undefined | null): Promise<NativeExecuteResult>
252
252
  exec(sql: string): Promise<QueryResult>
253
253
  close(): Promise<void>
254
254
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivetkit/rivetkit-napi",
3
- "version": "0.0.0-pr.4856.c68d9cb",
3
+ "version": "0.0.0-pr.4857.3a10f72",
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.4856.c68d9cb"
46
+ "@rivetkit/engine-envoy-protocol": "0.0.0-pr.4857.3a10f72"
47
47
  },
48
48
  "optionalDependencies": {
49
- "@rivetkit/rivetkit-napi-darwin-arm64": "0.0.0-pr.4856.c68d9cb",
50
- "@rivetkit/rivetkit-napi-darwin-x64": "0.0.0-pr.4856.c68d9cb",
51
- "@rivetkit/rivetkit-napi-linux-arm64-gnu": "0.0.0-pr.4856.c68d9cb",
52
- "@rivetkit/rivetkit-napi-linux-arm64-musl": "0.0.0-pr.4856.c68d9cb",
53
- "@rivetkit/rivetkit-napi-linux-x64-gnu": "0.0.0-pr.4856.c68d9cb",
54
- "@rivetkit/rivetkit-napi-linux-x64-musl": "0.0.0-pr.4856.c68d9cb",
55
- "@rivetkit/rivetkit-napi-win32-x64-msvc": "0.0.0-pr.4856.c68d9cb"
49
+ "@rivetkit/rivetkit-napi-darwin-arm64": "0.0.0-pr.4857.3a10f72",
50
+ "@rivetkit/rivetkit-napi-darwin-x64": "0.0.0-pr.4857.3a10f72",
51
+ "@rivetkit/rivetkit-napi-linux-arm64-gnu": "0.0.0-pr.4857.3a10f72",
52
+ "@rivetkit/rivetkit-napi-linux-arm64-musl": "0.0.0-pr.4857.3a10f72",
53
+ "@rivetkit/rivetkit-napi-linux-x64-gnu": "0.0.0-pr.4857.3a10f72",
54
+ "@rivetkit/rivetkit-napi-linux-x64-musl": "0.0.0-pr.4857.3a10f72",
55
+ "@rivetkit/rivetkit-napi-win32-x64-msvc": "0.0.0-pr.4857.3a10f72"
56
56
  }
57
57
  }