MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / findConnectionRow

Function findConnectionRow

packages/core/sdk/src/executor.ts:1472–1482  ·  view source on GitHub ↗
(
      ref: ConnectionRef,
    )

Source from the content-addressed store, hash-verified

1470 // ------------------------------------------------------------------
1471
1472 const findConnectionRow = (
1473 ref: ConnectionRef,
1474 ): Effect.Effect<ConnectionRow | null, StorageFailure> =>
1475 core.findFirst("connection", {
1476 where: (b: AnyCb) =>
1477 b.and(
1478 byOwner(ref.owner)(b),
1479 b("integration", "=", String(ref.integration)),
1480 b("name", "=", String(ref.name)),
1481 ),
1482 });
1483
1484 // In-flight refresh gate — concurrent resolves of the same connection share
1485 // one refresh (mirrors v1's refresh deferred-map) so we never fire two

Callers 12

produceConnectionToolsFunction · 0.85
connectionsCreateFunction · 0.85
mintOAuthConnectionFunction · 0.85
connectionsGetFunction · 0.85
connectionsUpdateFunction · 0.85
connectionsRemoveFunction · 0.85
connectionsRefreshFunction · 0.85
connectionCheckHealthFunction · 0.85
executeFunction · 0.85
createExecutorFunction · 0.85

Calls 1

byOwnerFunction · 0.85

Tested by

no test coverage detected