refactor: remote data provider

This commit is contained in:
DarkSky
2022-08-10 22:10:34 +08:00
parent a5a8b32a25
commit 89191290e4
5 changed files with 137 additions and 111 deletions

View File

@@ -134,7 +134,7 @@ export class IndexedDBProvider extends Observable<string> {
}
/**
* Destroys this instance and removes all data from SQLite.
* Destroys this instance and removes all data from indexeddb.
*
* @return {Promise<void>}
*/

View File

@@ -41,6 +41,7 @@ const initSQLiteInstance = async () => {
_sqliteProcessing = true;
_sqliteInstance = await sqlite({
locateFile: () =>
// @ts-ignore
new URL('sql.js/dist/sql-wasm.wasm', import.meta.url).href,
});
_sqliteProcessing = false;