MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / getQueries

Method getQueries

lib/mapping/model-batch-item.js:45–54  ·  view source on GitHub ↗

* @ignore * @returns >

()

Source from the content-addressed store, hash-verified

43 * @returns <Promise<Array>>
44 */
45 getQueries() {
46 const docKeys = Object.keys(this.doc);
47 const cacheItem = this.cache.getOrCreate(this.getCacheKey(docKeys), () => ({ queries: null }));
48
49 if (cacheItem.queries === null) {
50 cacheItem.queries = this.createQueries(docKeys);
51 }
52
53 return cacheItem.queries;
54 }
55
56 /**
57 * Gets the cache key for this item.

Callers 1

pushQueriesMethod · 0.95

Calls 4

getCacheKeyMethod · 0.95
createQueriesMethod · 0.95
getOrCreateMethod · 0.80
keysMethod · 0.65

Tested by

no test coverage detected