MCPcopy Create free account
hub / github.com/Effect-TS/effect / evaluate

Function evaluate

packages/effect/src/unstable/sql/Statement.ts:1367–1380  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

1365 ...Effectable.Prototype<StatementImpl<any>>({
1366 label: "Statement",
1367 evaluate(fiber) {
1368 const span = internalEffect.makeSpanUnsafe(fiber, "sql.execute", { kind: "client" })
1369 const clock = fiber.getRef(Clock)
1370 const timingEnabled = fiber.getRef(TracerTimingEnabled)
1371 return Effect.onExit(
1372 this.withConnectionSpan(
1373 "execute",
1374 (connection, sql, params) => connection.execute(sql, params, this.transformRows),
1375 false,
1376 span
1377 ),
1378 (exit) => internalEffect.endSpan(span, exit, clock, timingEnabled)
1379 )
1380 }
1381 }),
1382
1383 compile(

Callers 1

makePlaceholdersArrayFunction · 0.70

Calls 3

getRefMethod · 0.80
withConnectionSpanMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected