mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 18:46:19 +08:00
refactor: local storage
This commit is contained in:
@@ -192,4 +192,13 @@ export class Database {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async setupDataExporter(
|
||||
workspace: string,
|
||||
initialData: Uint8Array,
|
||||
callback: (binary: Uint8Array) => Promise<void>
|
||||
) {
|
||||
const db = await this.getDatabase(workspace);
|
||||
await db.setupDataExporter(initialData, callback);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user