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

Function get

packages/cluster/test/SqlRunnerStorage.test.ts:208–219  ·  view source on GitHub ↗
(target, property, receiver)

Source from the content-addressed store, hash-verified

206 }
207 const client: SqlClient.SqlClient = new Proxy(sql, {
208 get(target, property, receiver) {
209 if (property === "reserve") {
210 return Effect.map(target.reserve, (connection) => {
211 partition.reservedConnections++
212 return wrapConnection(connection)
213 })
214 }
215 if (property === "withoutTransforms") {
216 return () => client
217 }
218 return Reflect.get(target, property, receiver)
219 }
220 })
221 return client
222 })

Callers

nothing calls this directly

Calls 3

wrapConnectionFunction · 0.85
mapMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected