MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / query

Function query

packages/migrate/scripts/universaloj.ts:56–58  ·  view source on GitHub ↗
(q: string)

Source from the content-addressed store, hash-verified

54 database: name,
55 });
56 const query = (q: string) => new Promise<any[]>((res, rej) => {
57 src.query(q).then((r) => res(r)).catch((e) => rej(e));
58 });
59 const target = await DomainModel.get(domainId);
60 if (!target) throw new NotFoundError(domainId);
61 report({ message: 'Connected to database' });

Callers 1

runFunction · 0.70

Calls 2

thenMethod · 0.80
queryMethod · 0.80

Tested by

no test coverage detected