MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / fetchDataSources

Function fetchDataSources

client/src/api/datasource/queries.ts:12–21  ·  view source on GitHub ↗
(client: DataSourceClient)

Source from the content-addressed store, hash-verified

10import { FileWithHandle, fileOpen } from 'browser-fs-access';
11
12const fetchDataSources = async (client: DataSourceClient) => {
13 let response;
14 try {
15 response = await client.list();
16 } catch (error) {
17 console.error('the failed GET above is due to no connection to the backend API');
18 response = [];
19 }
20 return response;
21};
22
23export const fetchDataSource = async (client: DataSourceClient, account: string, container: string) => {
24 const response = await client.get(account, container);

Callers 1

getDataSourcesFunction · 0.70

Calls 1

listMethod · 0.65

Tested by

no test coverage detected