@persql/sdk 1.2.0 → 1.3.0

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/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  PerSQL
4
- } from "./chunk-GH75ERQ6.js";
4
+ } from "./chunk-SIJU2P7U.js";
5
5
 
6
6
  // src/cli.ts
7
7
  import { writeFile } from "fs/promises";
package/dist/index.cjs CHANGED
@@ -197,7 +197,14 @@ function runOne(db, sql, params) {
197
197
  return { columns: cols, rows, rowsRead: rows.length, rowsWritten: 0 };
198
198
  }
199
199
  const info = stmt.run(...params);
200
- return { columns: [], rows: [], rowsRead: 0, rowsWritten: info.changes ?? 0 };
200
+ return {
201
+ columns: [],
202
+ rows: [],
203
+ rowsRead: 0,
204
+ rowsWritten: info.changes ?? 0,
205
+ changes: info.changes ?? 0,
206
+ lastInsertRowid: Number(info.lastInsertRowid ?? 0)
207
+ };
201
208
  }
202
209
 
203
210
  // src/index.ts