libsql-client-ts icon indicating copy to clipboard operation
libsql-client-ts copied to clipboard

Interleaved transactions no longer work

Open penberg opened this issue 2 years ago • 0 comments

Pull request #100 optimized the API to share the same connection, but this now breaks interleaved transactions:

  const tx1 = await libsql.transaction('deferred')
  await tx1.execute(`SELECT 1`)

  const tx2 = await libsql.transaction('deferred')
  await tx2.execute(`SELECT 1`)

  await tx1.commit()
  await tx2.commit()

penberg avatar Sep 25 '23 18:09 penberg