diff --git a/addons/dexie-export-import/README.md b/addons/dexie-export-import/README.md index 885719ddf..88bf6bf38 100644 --- a/addons/dexie-export-import/README.md +++ b/addons/dexie-export-import/README.md @@ -115,6 +115,7 @@ export interface StaticImportOptions { chunkSizeBytes?: number; // Default: DEFAULT_KILOBYTES_PER_CHUNK ( 1MB ) filter?: (table: string, value: any, key?: any) => boolean; progressCallback?: (progress: ImportProgress) => boolean; + name?: string; } export interface ImportOptions extends StaticImportOptions { diff --git a/addons/dexie-export-import/src/import.ts b/addons/dexie-export-import/src/import.ts index 2fae19a2d..f69e025ea 100644 --- a/addons/dexie-export-import/src/import.ts +++ b/addons/dexie-export-import/src/import.ts @@ -10,6 +10,7 @@ export interface StaticImportOptions { filter?: (table: string, value: any, key?: any) => boolean; transform?: (table: string, value: any, key?: any) => ({value: any, key?: any}); progressCallback?: (progress: ImportProgress) => boolean; + name?: string; } export interface ImportOptions extends StaticImportOptions { @@ -42,9 +43,9 @@ export async function importDB(exportedData: Blob | JsonStream