Load workspace metadata + state. Returns undefined if not found.
(id: string)
| 99 | |
| 100 | /** Load workspace metadata + state. Returns undefined if not found. */ |
| 101 | async load(id: string): Promise<WorkspaceEntry | undefined> { |
| 102 | const db = await openDB(); |
| 103 | try { |
| 104 | const store = txStore(db, 'readonly'); |
| 105 | return await reqToPromise(store.get(id)); |
| 106 | } finally { |
| 107 | db.close(); |
| 108 | } |
| 109 | }, |
| 110 | |
| 111 | /** Save workspace metadata, state, and table index. */ |
| 112 | async save( |