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

Method getDseVersion

lib/host.js:439–444  ·  view source on GitHub ↗

* Gets the DSE version of the host as an Array, containing the major version in the first position. * In case the cluster is not a DSE cluster, it returns an empty Array. * @returns {Array}

()

Source from the content-addressed store, hash-verified

437 * @returns {Array}
438 */
439 getDseVersion() {
440 if (!this.dseVersion) {
441 return utils.emptyArray;
442 }
443 return this.dseVersion.split('-')[0].split('.').map(x => parseInt(x, 10));
444 }
445}
446
447/**

Callers 1

_dseSupportsInsightsMethod · 0.80

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected