MCPcopy Index your code
hub / github.com/Effect-TS/effect / request

Function request

packages/sql/src/SqlResolver.ts:160–167  ·  view source on GitHub ↗
(input: I)

Source from the content-addressed store, hash-verified

158 }
159 return Object.assign(self, {
160 request(input: I) {
161 return Effect.withFiberRuntime<SqlRequest<T, A, E>, ParseError, RI>(
162 (fiber) => {
163 const span = fiber.currentContext.unsafeMap.get(Tracer.ParentSpan.key)
164 return Effect.map(encode(input), (encoded) => makeRequest(tag, input, encoded, span))
165 }
166 )
167 },
168 cachePopulate(input: I, value: A) {
169 return Effect.cacheRequestResult(makeRequest(tag, input, null as any, null as any), Exit.succeed(value))
170 },

Callers

nothing calls this directly

Calls 4

encodeFunction · 0.70
makeRequestFunction · 0.70
getMethod · 0.65
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…