Class: IndexedDBWorkspaceService
Defined in: infrastructure/IndexedDBServices.ts:88
IndexedDB implementation of workspace service
Implements
Constructors
Constructor
new IndexedDBWorkspaceService(): IndexedDBWorkspaceService;Defined in: infrastructure/IndexedDBServices.ts:92
Opens (or creates) the sidedoc IndexedDB database.
Returns
IndexedDBWorkspaceService
Methods
createFolder()
createFolder(_params): Promise<FolderNode>;Defined in: infrastructure/IndexedDBServices.ts:169
Not supported; throws. Use FolderApplicationService instead.
Parameters
| Parameter | Type |
|---|---|
_params | { name: string; parentId?: string; } |
_params.name | string |
_params.parentId? | string |
Returns
Promise<FolderNode>
Implementation of
deleteFolder()
deleteFolder(_params): Promise<void>;Defined in: infrastructure/IndexedDBServices.ts:184
Not supported; throws. Use FolderApplicationService instead.
Parameters
| Parameter | Type |
|---|---|
_params | { folderId: string; } |
_params.folderId | string |
Returns
Promise<void>
Implementation of
getWorkspace()
getWorkspace(): Promise<WorkspaceSnapshot>;Defined in: infrastructure/IndexedDBServices.ts:100
Reads the stored workspace and fills its documents from the document store. Rejects if no workspace has been stored yet.
Returns
Promise<WorkspaceSnapshot>
Implementation of
moveFolder()
moveFolder(_params): Promise<void>;Defined in: infrastructure/IndexedDBServices.ts:179
Not supported; throws. Use FolderApplicationService instead.
Parameters
| Parameter | Type |
|---|---|
_params | { folderId: string; targetParentId: string; } |
_params.folderId | string |
_params.targetParentId | string |
Returns
Promise<void>
Implementation of
renameFolder()
renameFolder(_params): Promise<FolderNode>;Defined in: infrastructure/IndexedDBServices.ts:174
Not supported; throws. Use FolderApplicationService instead.
Parameters
| Parameter | Type |
|---|---|
_params | { folderId: string; name: string; } |
_params.folderId | string |
_params.name | string |
Returns
Promise<FolderNode>
Implementation of
updateWorkspace()
updateWorkspace(snapshot): Promise<WorkspaceSnapshot>;Defined in: infrastructure/IndexedDBServices.ts:132
Stores the full snapshot as the current workspace and replaces the contents of the document store with snapshot.documents. Values that cannot be cloned are sanitized first.
Parameters
| Parameter | Type |
|---|---|
snapshot | WorkspaceSnapshot |
Returns
Promise<WorkspaceSnapshot>