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

Method rollback

packages/sql/libsql/src/LibsqlClient.ts:274–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272 })
273 }
274 get rollback() {
275 return Effect.tryPromise({
276 try: () => (this.sdk as Libsql.Transaction).rollback(),
277 catch: (cause) =>
278 new SqlError({ reason: classifyError(cause, "Failed to rollback transaction", "rollbackTransaction") })
279 })
280 }
281 }
282
283 const connection = "liveClient" in options

Callers 3

makeFunction · 0.80
makeWithTransactionFunction · 0.80

Calls 1

classifyErrorFunction · 0.70

Tested by

no test coverage detected