ravendb
Version:
RavenDB client for Node.js
23 lines • 899 B
TypeScript
import { IDocumentStore } from "../IDocumentStore.js";
import { HiloRangeValue } from "./HiloRangeValue.js";
import { NextId } from "./NextId.js";
export declare class HiloIdGenerator {
private _store;
private readonly _tag;
protected _prefix?: string;
private _lastBatchSize;
private _lastRangeAt;
private readonly _dbName;
private readonly _identityPartsSeparator;
private _range;
private _nextRangeTask;
constructor(tag: string, store: IDocumentStore, dbName: string, identityPartsSeparator: string);
protected _getDocumentIdFromId(result: NextId): string;
generateDocumentId(entity: object): Promise<string>;
getNextId(): Promise<NextId>;
protected _getNextRange(): Promise<void>;
returnUnusedRange(): Promise<void>;
get range(): HiloRangeValue;
set range(value: HiloRangeValue);
}
//# sourceMappingURL=HiloIdGenerator.d.ts.map