* @param {String} keyspaceName * @param {String} name * @returns {Promise } * @private
(keyspaceName, name)
| 661 | * @private |
| 662 | */ |
| 663 | async _getMaterializedView(keyspaceName, name) { |
| 664 | if (!this.initialized) { |
| 665 | throw this._uninitializedError(); |
| 666 | } |
| 667 | let cache; |
| 668 | if (this.options.isMetadataSyncEnabled) { |
| 669 | const keyspace = this.keyspaces[keyspaceName]; |
| 670 | if (!keyspace) { |
| 671 | return null; |
| 672 | } |
| 673 | cache = keyspace.views; |
| 674 | } |
| 675 | return await this._schemaParser.getMaterializedView(keyspaceName, name, cache); |
| 676 | } |
| 677 | |
| 678 | /** |
| 679 | * Gets a map of cql function definitions or aggregates based on signature. |
no test coverage detected