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

Method getKeyspace

lib/metadata/schema-parser.js:409–415  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

407 }
408
409 async getKeyspace(name) {
410 const row = await this._getFirstRow(format(_selectSingleKeyspaceV1, name));
411 if (!row) {
412 return null;
413 }
414 return this._createKeyspace(row['keyspace_name'], row['durable_writes'], row['strategy_class'], JSON.parse(row['strategy_options']));
415 }
416
417 // eslint-disable-next-line require-await
418 async _parseTableOrView(tableInfo, tableRow, columnRows, indexRows, virtual) {

Callers

nothing calls this directly

Calls 3

_getFirstRowMethod · 0.80
_createKeyspaceMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected