* @param {String} keyspaceName * @param {String} name * @returns {Promise } * @private
(keyspaceName, name)
| 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. |
no test coverage detected