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

Function start

packages/effect/src/sql/SqlClient.ts:790–793  ·  view source on GitHub ↗
(conn: S)

Source from the content-addressed store, hash-verified

788 }
789 let committed = false
790 const start = (conn: S) =>
791 id === 0
792 ? control("BEGIN", options.begin(conn, fiber.getRef(BeginTransaction)))
793 : control("SAVEPOINT", options.savepoint(conn, id))
794 const transaction = Effect.flatMap(
795 conn,
796 (

Callers 1

makeWithTransactionFunction · 0.70

Calls 3

getRefMethod · 0.80
controlFunction · 0.70
beginMethod · 0.45

Tested by

no test coverage detected