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