@naturalcycles/datastore-lib 4.8.1 → 4.9.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.
|
@@ -107,7 +107,9 @@ export class DatastoreStreamReadable extends Readable {
|
|
|
107
107
|
this.endCursor = info.endCursor;
|
|
108
108
|
this.running = false; // ready to take more _reads
|
|
109
109
|
this.lastQueryDone = Date.now();
|
|
110
|
-
|
|
110
|
+
for (const row of rows) {
|
|
111
|
+
this.push(row);
|
|
112
|
+
}
|
|
111
113
|
if (!info.endCursor ||
|
|
112
114
|
info.moreResults === 'NO_MORE_RESULTS' ||
|
|
113
115
|
(this.originalLimit && this.rowsRetrieved >= this.originalLimit)) {
|
|
@@ -8,10 +8,7 @@ export declare class DatastoreKeyValueDB implements CommonKeyValueDB {
|
|
|
8
8
|
cfg: DatastoreKeyValueDBCfg;
|
|
9
9
|
constructor(cfg: DatastoreKeyValueDBCfg);
|
|
10
10
|
db: DatastoreDB;
|
|
11
|
-
support:
|
|
12
|
-
increment: boolean;
|
|
13
|
-
count?: boolean;
|
|
14
|
-
};
|
|
11
|
+
support: any;
|
|
15
12
|
ping(): Promise<void>;
|
|
16
13
|
createTable(): Promise<void>;
|
|
17
14
|
getByIds(table: string, ids: string[]): Promise<KeyValueDBTuple[]>;
|
package/package.json
CHANGED
|
@@ -154,7 +154,9 @@ export class DatastoreStreamReadable<T = any> extends Readable implements Readab
|
|
|
154
154
|
this.running = false // ready to take more _reads
|
|
155
155
|
this.lastQueryDone = Date.now()
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
for (const row of rows) {
|
|
158
|
+
this.push(row)
|
|
159
|
+
}
|
|
158
160
|
|
|
159
161
|
if (
|
|
160
162
|
!info.endCursor ||
|