MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / getClient

Function getClient

server/src/db/client.ts:114–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112 * Get a client from the pool for transactions.
113 */
114export async function getClient(): Promise<PoolClient> {
115 const p = getPool();
116 return p.connect();
117}
118
119/**
120 * Perform a health check. If the pool can't serve a trivial query,

Callers 15

writeEventsMethod · 0.70
upsertAdagentsCacheMethod · 0.70
replaceEventSpeakersMethod · 0.70
resolvePersonIdFunction · 0.70
setCadenceFunction · 0.70
getNarrowMethod · 0.70
openSnapshotMethod · 0.70
savePolicyFunction · 0.70
editCommunityPropertyMethod · 0.70
rollbackPropertyMethod · 0.70
createDiscoveredBrandMethod · 0.70

Calls 1

getPoolFunction · 0.85

Tested by

no test coverage detected