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

Function withoutTransforms

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

Source from the content-addressed store, hash-verified

695 procedure: Procedure.ProcedureWithValues<I, O, A>
696 ) => Effect.scoped(Effect.flatMap(getConnection, (_) => _.call(procedure, transformRows))),
697 withoutTransforms() {
698 const statement = Statement.make(getConnection, compiler.withoutTransform, spanAttributes, undefined)
699 const client = Object.assign(
700 statement,
701 this,
702 statement,
703 {
704 call: <
705 I extends Record<string, Parameter<any>>,
706 O extends Record<string, Parameter<any>>,
707 A
708 >(
709 procedure: Procedure.ProcedureWithValues<I, O, A>
710 ) => Effect.scoped(Effect.flatMap(getConnection, (_) => _.call(procedure, undefined)))
711 }
712 )
713 ;(client as any).safe = client
714 ;(client as any).withoutTransforms = () => client
715 return client
716 }
717 }
718 ))
719 })

Callers 2

Client.test.tsFile · 0.50
Client.test.tsFile · 0.50

Calls 3

assignMethod · 0.80
makeMethod · 0.65
callMethod · 0.45

Tested by

no test coverage detected