ravendb
Version:
RavenDB client for Node.js
24 lines • 678 B
JavaScript
export class AbstractCommonApiForIndexes {
additionalSources;
additionalAssemblies;
configuration;
constructor() {
this.configuration = {};
}
/**
* Gets a value indicating whether this instance is map reduce index definition
*/
get isMapReduce() {
return false;
}
/**
* Generates index name from type name replacing all _ with /
*/
getIndexName() {
return AbstractCommonApiForIndexes.getIndexNameForCtor(this.constructor.name);
}
static getIndexNameForCtor(indexCtorName) {
return indexCtorName.replace(/_/g, "/");
}
}
//# sourceMappingURL=AbstractCommonApiForIndexes.js.map