@naturalcycles/datastore-lib 3.17.1 → 3.17.2

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.
@@ -17,4 +17,5 @@ export declare class DatastoreKeyValueDB implements CommonKeyValueDB {
17
17
  streamIds(table: string, limit?: number): ReadableTyped<string>;
18
18
  streamValues(table: string, limit?: number): ReadableTyped<Buffer>;
19
19
  streamEntries(table: string, limit?: number): ReadableTyped<KeyValueDBTuple>;
20
+ count(_table: string): Promise<number>;
20
21
  }
@@ -47,5 +47,9 @@ class DatastoreKeyValueDB {
47
47
  errorMode: js_lib_1.ErrorMode.SUPPRESS, // cause .pipe() cannot propagate errors
48
48
  }));
49
49
  }
50
+ async count(_table) {
51
+ this.db.cfg.logger.warn(`DatastoreKeyValueDB.count is not supported`);
52
+ return 0;
53
+ }
50
54
  }
51
55
  exports.DatastoreKeyValueDB = DatastoreKeyValueDB;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/datastore-lib",
3
- "version": "3.17.1",
3
+ "version": "3.17.2",
4
4
  "description": "Opinionated library to work with Google Datastore",
5
5
  "scripts": {
6
6
  "prepare": "husky install"
@@ -76,4 +76,9 @@ export class DatastoreKeyValueDB implements CommonKeyValueDB {
76
76
  }),
77
77
  )
78
78
  }
79
+
80
+ async count(_table: string): Promise<number> {
81
+ this.db.cfg.logger.warn(`DatastoreKeyValueDB.count is not supported`)
82
+ return 0
83
+ }
79
84
  }