Function getDocumentsManager
- getDocumentsManager(): {
bulkPut(items: (Omit<DocumentEntity, "id"> & {
id?: number;
})[]): Promise<number[]>;
deleteByRepo(repo: string): Promise<number>;
deleteUnusedInRepo(repo: string, usedIds: number[]): Promise<number>;
deleteUnusedRepo(usedRepos: string[]): Promise<number>;
deletedByRepoAndPath(repo: string, path: string): Promise<number>;
findAllMtimeMsByRepo(repo: string): Promise<Map<string, {
id: number;
mtimeMs: number;
}>>;
findByRepoAndPath(repo: string, path: string): Promise<undefined | DocumentEntity>;
getTable(): EntityTable<DocumentEntity, "id">;
put(entity: Omit<DocumentEntity, "id"> & {
id?: number;
}): Promise<number>;
} Returns {
bulkPut(items: (Omit<DocumentEntity, "id"> & {
id?: number;
})[]): Promise<number[]>;
deleteByRepo(repo: string): Promise<number>;
deleteUnusedInRepo(repo: string, usedIds: number[]): Promise<number>;
deleteUnusedRepo(usedRepos: string[]): Promise<number>;
deletedByRepoAndPath(repo: string, path: string): Promise<number>;
findAllMtimeMsByRepo(repo: string): Promise<Map<string, {
id: number;
mtimeMs: number;
}>>;
findByRepoAndPath(repo: string, path: string): Promise<undefined | DocumentEntity>;
getTable(): EntityTable<DocumentEntity, "id">;
put(entity: Omit<DocumentEntity, "id"> & {
id?: number;
}): Promise<number>;
}
bulkPut:function
- bulkPut(items): Promise<number[]>
Parameters
- items: (Omit<DocumentEntity, "id"> & {
id?: number;
})[]
Returns Promise<number[]>
deleteByRepo:function
- deleteByRepo(repo): Promise<number>
Returns Promise<number>
deleteUnusedInRepo:function
- deleteUnusedInRepo(repo, usedIds): Promise<number>
Parameters
- repo: string
- usedIds: number[]
Returns Promise<number>
deleteUnusedRepo:function
- deleteUnusedRepo(usedRepos): Promise<number>
Returns Promise<number>
deletedByRepoAndPath:function
- deletedByRepoAndPath(repo, path): Promise<number>
Returns Promise<number>
findAllMtimeMsByRepo:function
- findAllMtimeMsByRepo(repo): Promise<Map<string, {
id: number;
mtimeMs: number;
}>> Returns Promise<Map<string, {
id: number;
mtimeMs: number;
}>>
findByRepoAndPath:function
- findByRepoAndPath(repo, path): Promise<undefined | DocumentEntity>
Returns Promise<undefined | DocumentEntity>
getTable:function
- getTable(): EntityTable<DocumentEntity, "id">
Returns EntityTable<DocumentEntity, "id">
put:function
- put(entity): Promise<number>
Parameters
- entity: Omit<DocumentEntity, "id"> & {
id?: number;
}
Returns Promise<number>