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

Method commit

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

Source from the content-addressed store, hash-verified

265 )
266 }
267 get commit() {
268 return Effect.tryPromise({
269 try: () => (this.sdk as Libsql.Transaction).commit(),
270 catch: (cause) =>
271 new SqlError({ reason: classifyError(cause, "Failed to commit transaction", "commitTransaction") })
272 })
273 }
274 get rollback() {
275 return Effect.tryPromise({
276 try: () => (this.sdk as Libsql.Transaction).rollback(),

Callers 1

makeWithTransactionFunction · 0.80

Calls 1

classifyErrorFunction · 0.70

Tested by

no test coverage detected