UNPKG

ravendb

Version:
20 lines 994 B
import { HiloIdGenerator } from "./HiloIdGenerator.js"; import { IRavenObject } from "../../Types/IRavenObject.js"; import { DocumentStore } from "../DocumentStore.js"; import { DocumentConventions } from "../Conventions/DocumentConventions.js"; export declare class MultiTypeHiLoIdGenerator { private readonly _sem; protected _idGeneratorsByTag: IRavenObject<HiloIdGenerator>; protected readonly _store: DocumentStore; protected readonly _dbName: string; protected readonly _conventions: DocumentConventions; private _identityPartsSeparator; constructor(store: DocumentStore, dbName?: string); generateDocumentId(entity: object, documentType?: string): Promise<string>; private _maybeRefresh; generateNextIdFor(collectionName: string): Promise<number>; protected _createGeneratorFor(tag: string): HiloIdGenerator; returnUnusedRange(): Promise<void>; private static _returnUnusedRange; } //# sourceMappingURL=MultiTypeHiLoIdGenerator.d.ts.map