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

Method _getTable

lib/metadata/index.js:517–532  ·  view source on GitHub ↗

* @param {String} keyspaceName * @param {String} name * @private

(keyspaceName, name)

Source from the content-addressed store, hash-verified

515 * @private
516 */
517 async _getTable(keyspaceName, name) {
518 if (!this.initialized) {
519 throw this._uninitializedError();
520 }
521 let cache;
522 let virtual;
523 if (this.options.isMetadataSyncEnabled) {
524 const keyspace = this.keyspaces[keyspaceName];
525 if (!keyspace) {
526 return null;
527 }
528 cache = keyspace.tables;
529 virtual = keyspace.virtual;
530 }
531 return await this._schemaParser.getTable(keyspaceName, name, cache, virtual);
532 }
533
534 /**
535 * Gets the definition of CQL functions for a given name.

Callers 1

getTableMethod · 0.95

Calls 2

_uninitializedErrorMethod · 0.95
getTableMethod · 0.65

Tested by

no test coverage detected