@tmlmobilidade/go-clients-sqlite 20260911.1742.59 → 20260914.1727.46

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.
@@ -82,7 +82,7 @@ export declare class SQLiteTableInstance<T> {
82
82
  * @param params The parameters for the WHERE clause.
83
83
  * @returns The updated rows.
84
84
  */
85
- update(whereClause: string, newData: Partial<T>, params?: (boolean | number | string)[]): T[];
85
+ update(whereClause: string | undefined, newData: Partial<T>, params?: (boolean | number | string)[]): T[];
86
86
  /**
87
87
  * Add one item to buffer, flush automatically when batchSize reached.
88
88
  */
package/dist/sqlite-db.js CHANGED
@@ -126,7 +126,8 @@ export class SQLiteTableInstance {
126
126
  */
127
127
  distinct(col) {
128
128
  const sql = `SELECT DISTINCT ${String(col)} FROM ${this.tableName}`;
129
- return this.databaseInstance.prepare(sql).all().map(row => row[String(col)]);
129
+ const rows = this.databaseInstance.prepare(sql).all();
130
+ return rows.map(row => row[String(col)]);
130
131
  }
131
132
  /**
132
133
  * Flush current buffer into DB synchronously.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/go-clients-sqlite",
3
- "version": "20260911.1742.59",
3
+ "version": "20260914.1727.46",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"