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

Function withoutTransforms

packages/sql/mssql/src/MssqlClient.ts:595–614  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

593 procedure: Procedure.ProcedureWithValues<I, O, A>
594 ) => Effect.scoped(Effect.flatMap(Pool.get(pool), (_) => _.call(procedure, transformRows))),
595 withoutTransforms() {
596 const statement = Statement.make(Pool.get(pool), compiler.withoutTransform, spanAttributes, undefined)
597 const client = Object.assign(
598 statement,
599 this,
600 statement,
601 {
602 call: <
603 I extends Record<string, Parameter<any>>,
604 O extends Record<string, Parameter<any>>,
605 A
606 >(
607 procedure: Procedure.ProcedureWithValues<I, O, A>
608 ) => Effect.scoped(Effect.flatMap(Pool.get(pool), (_) => _.call(procedure, undefined)))
609 }
610 )
611 ;(client as any).safe = client
612 ;(client as any).withoutTransforms = () => client
613 return client
614 }
615 }
616 ))
617 })

Callers 1

Client.test.tsFile · 0.50

Calls 3

assignMethod · 0.80
makeMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected