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

Method _getUdt

lib/metadata/index.js:478–491  ·  view source on GitHub ↗

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

(keyspaceName, name)

Source from the content-addressed store, hash-verified

476 * @private
477 */
478 async _getUdt(keyspaceName, name) {
479 if (!this.initialized) {
480 throw this._uninitializedError();
481 }
482 let cache;
483 if (this.options.isMetadataSyncEnabled) {
484 const keyspace = this.keyspaces[keyspaceName];
485 if (!keyspace) {
486 return null;
487 }
488 cache = keyspace.udts;
489 }
490 return await this._schemaParser.getUdt(keyspaceName, name, cache);
491 }
492
493 /**
494 * Gets the definition of a table.

Callers 1

getUdtMethod · 0.95

Calls 2

_uninitializedErrorMethod · 0.95
getUdtMethod · 0.65

Tested by

no test coverage detected