MCPcopy
hub / github.com/microsoft/data-formulator / list

Function list

src/app/workspaceDB.ts:88–98  ·  view source on GitHub ↗

List all workspaces (metadata only, no full data), newest first.

()

Source from the content-addressed store, hash-verified

86export const workspaceDB = {
87 /** List all workspaces (metadata only, no full data), newest first. */
88 async list(): Promise<WorkspaceEntry[]> {
89 const db = await openDB();
90 try {
91 const store = txStore(db, 'readonly');
92 const entries: WorkspaceEntry[] = await reqToPromise(store.getAll());
93 entries.sort((a, b) => (b.updatedAt || '').localeCompare(a.updatedAt || ''));
94 return entries;
95 } finally {
96 db.close();
97 }
98 },
99
100 /** Load workspace metadata + state. Returns undefined if not found. */
101 async load(id: string): Promise<WorkspaceEntry | undefined> {

Callers 15

list_data_loadersFunction · 0.85
register_data_connectorsFunction · 0.85
_warm_worker_loopFunction · 0.85
shutdownMethod · 0.85
lsMethod · 0.85
list_tablesMethod · 0.85
fetch_data_as_arrowMethod · 0.85
list_tablesMethod · 0.85
get_metadataMethod · 0.85
get_metadataMethod · 0.85
fetch_data_as_arrowMethod · 0.85
list_tablesMethod · 0.85

Calls 4

openDBFunction · 0.85
txStoreFunction · 0.85
reqToPromiseFunction · 0.85
closeMethod · 0.45

Tested by 15

test_connectionMethod · 0.68
test_derived_columnsMethod · 0.68
test_duckdb_sqlMethod · 0.68
test_simple_transformMethod · 0.68
test_derived_columnsMethod · 0.68
test_json_usageMethod · 0.68
test_duckdb_sqlMethod · 0.68
test_traversal_raisesMethod · 0.68
seeded_tableFunction · 0.68