feat: sqlite subdocument (#2816)

Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
Peng XiaoandAlex Yang authored and GitHub committed 2023-06-27 07:40:37 +00:00
1 parent 4307e1eb6b
commit 05452bb297
30 files changed
+842 -426

No files matched your search

+9 -2
View File
@@ -17,8 +17,15 @@ export abstract class HandlerManager<
}
type DBHandlers = {
getDocAsUpdates: (id: string) => Promise<Uint8Array>;
applyDocUpdate: (id: string, update: Uint8Array) => Promise<void>;
getDocAsUpdates: (
workspaceId: string,
subdocId?: string
) => Promise<Uint8Array>;
applyDocUpdate: (
id: string,
update: Uint8Array,
subdocId?: string
) => Promise<void>;
addBlob: (
workspaceId: string,
key: string,