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

Function getPool

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

Source from the content-addressed store, hash-verified

55 * Get database pool instance
56 */
57export function getPool(): Pool {
58 if (!pool) {
59 throw new Error("Database not initialized. Call initializeDatabase() first.");
60 }
61 return pool;
62}
63
64/** Transient connection errors that are safe to retry once. */
65const TRANSIENT_CONNECTION_ERRORS = new Set([

Callers 15

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
setupRoutesMethod · 0.85
setupAuthRoutesMethod · 0.85
seedDevOrganizationsFunction · 0.85
seedDevMemberProfilesFunction · 0.85
seedDevHierarchyDataFunction · 0.85
seedDevUsersFunction · 0.85
seedDevMembershipsFunction · 0.85
enrichUserWithMembershipFunction · 0.85
validateWorkOSBearerJWTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected