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

Function rollback

packages/sql/sqlite-do/src/SqliteClient.ts:171–171  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

169
170 // Uses `txn.rollback()` because rejecting a nested callback can abort its parent.
171 const rollback = (id: number) => Effect.sync(() => levels[id].txn.rollback())
172
173 const withTransaction = Client.makeWithTransaction({
174 transactionService: SqliteTransaction,

Callers 1

Calls 2

rollbackMethod · 0.80
syncMethod · 0.45

Tested by

no test coverage detected