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

Method commit

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

Source from the content-addressed store, hash-verified

292 )
293 }
294 get commit() {
295 return Effect.tryPromise({
296 try: () => (this.sdk as Libsql.Transaction).commit(),
297 catch: (cause) =>
298 new SqlError({ reason: classifyError(cause, "Failed to commit transaction", "commitTransaction") })
299 })
300 }
301 get rollback() {
302 return Effect.tryPromise({
303 try: () => (this.sdk as Libsql.Transaction).rollback(),

Callers

nothing calls this directly

Calls 1

classifyErrorFunction · 0.70

Tested by

no test coverage detected