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

Method _getKeyspace

lib/metadata/schema-parser.js:922–941  ·  view source on GitHub ↗
(query, name, virtual)

Source from the content-addressed store, hash-verified

920 }
921
922 async _getKeyspace(query, name, virtual) {
923 try {
924 const row = await this._getFirstRow(format(query, name));
925
926 if (!row) {
927 return null;
928 }
929
930 return this._parseKeyspace(row, virtual);
931 }
932 catch (err) {
933 if (virtual) {
934 // only throw error for non-virtual query as
935 // server reporting C* 4.0 may not actually implement
936 // virtual tables.
937 return null;
938 }
939 throw err;
940 }
941 }
942}
943
944/**

Callers 1

getKeyspaceMethod · 0.95

Calls 2

_getFirstRowMethod · 0.80
_parseKeyspaceMethod · 0.80

Tested by

no test coverage detected