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

Function findConnectionRow

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

Source from the content-addressed store, hash-verified

1709 // ------------------------------------------------------------------
1710
1711 const findConnectionRow = (
1712 ref: ConnectionRef,
1713 ): Effect.Effect<ConnectionRow | null, StorageFailure> =>
1714 core.findFirst("connection", {
1715 where: (b: AnyCb) =>
1716 b.and(
1717 byOwner(ref.owner)(b),
1718 b("integration", "=", String(ref.integration)),
1719 b("name", "=", String(ref.name)),
1720 ),
1721 });
1722
1723 // In-flight refresh gate — concurrent resolves of the same connection share
1724 // 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