couchbase-index-manager
Version:
Manage Couchbase indexes during the CI/CD process
19 lines • 583 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FeatureVersions = void 0;
/**
* Tests for compatibility with various features,
* given a cluster version from clusterCompatibility.
*/
class FeatureVersions {
/**
* Tests for ALTER INDEX replica_count compatibility
*/
static alterIndexReplicaCount(version) {
return !!version &&
(version.major > 6 ||
(version.major == 6 && version.minor >= 5));
}
}
exports.FeatureVersions = FeatureVersions;
//# sourceMappingURL=feature-versions.js.map