MCPcopy
hub / github.com/graphile/starter / withRootDb

Function withRootDb

@app/db/__tests__/helpers.ts:66–67  ·  view source on GitHub ↗
(fn: ClientCallback<T>)

Source from the content-addressed store, hash-verified

64};
65
66export const withRootDb = <T>(fn: ClientCallback<T>) =>
67 withDbFromUrl(TEST_DATABASE_URL, fn);
68
69export const withUserDb = <T>(
70 fn: (client: PoolClient, user: User) => Promise<T>

Calls 1

withDbFromUrlFunction · 0.85

Tested by

no test coverage detected