Exposed icon indicating copy to clipboard operation
Exposed copied to clipboard

Kopi and Exposed compatibility

Open hfazai opened this issue 2 years ago • 0 comments

The framework Kopi is similar to Exposed in the way that it runs sql statement inside a transaction and it supports many database dialects.

Inorder to migrate progressively our applications written with Kopi to Exposed, we want to be able to run Exposed statements inside Kopi transactions.

Is it possible to achive this? If yes could you provide some guidelines?

PS:

  • At the end of the transaction, the kopi transaction performs commit/rollback and closes the connection.
  • Kopi transaction can provide java.sql.Connection to Exposed transaction.
  • We don't need to have nested transactions.

hfazai avatar Apr 25 '22 12:04 hfazai