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

Function transactionKey

packages/effect/src/unstable/sql/SqlResolver.ts:398–404  ·  view source on GitHub ↗
(entry: Request.Entry<A>)

Source from the content-addressed store, hash-verified

396}
397
398function transactionKey<A>(entry: Request.Entry<A>): SqlClient.TransactionConnection.Service | undefined {
399 const client = Context.getOrUndefined(entry.context, SqlClient.SqlClient)
400 if (!client) return undefined
401 const conn = Context.getOrUndefined(entry.context, client.transactionService)
402 if (!conn) return undefined
403 return Equal.byReferenceUnsafe(conn)
404}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected