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

Function endedByDatabase

packages/effect/src/sql/SqlClient.ts:375–375  ·  view source on GitHub ↗
(conn: Connection.Connection)

Source from the content-addressed store, hash-verified

373 const transactionService = options.transactionService ?? TransactionConnection(clientIdCounter++)
374 const isTransaction = options.isTransaction
375 const endedByDatabase = (conn: Connection.Connection) => isTransaction !== undefined && !isTransaction(conn)
376 // Check Effect's transaction lifetime before asking the driver: the connection may already be closed.
377 const transactionConnection = (transaction: TransactionConnection.Service) =>
378 hasEnded(afterCommitBuffers.get(transaction)) || endedByDatabase(transaction[0])

Callers 2

transactionConnectionFunction · 0.85
SqlClient.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected