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

Method getKeyspaces

lib/metadata/schema-parser.js:633–641  ·  view source on GitHub ↗
(waitReconnect)

Source from the content-addressed store, hash-verified

631 }
632
633 async getKeyspaces(waitReconnect) {
634 const keyspaces = {};
635 const result = await this.cc.query(_selectAllKeyspacesV2, waitReconnect);
636 for (let i = 0; i < result.rows.length; i++) {
637 const ksInfo = this._parseKeyspace(result.rows[i]);
638 keyspaces[ksInfo.name] = ksInfo;
639 }
640 return keyspaces;
641 }
642
643 async getKeyspace(name) {
644 const row = await this._getFirstRow(format(_selectSingleKeyspaceV2, name));

Callers

nothing calls this directly

Calls 2

_parseKeyspaceMethod · 0.95
queryMethod · 0.80

Tested by

no test coverage detected