runtime
2.0.0-alpha03
common
runtime
/
app.cash.sqldelight
/
TransactionWithReturn
Transaction
With
Return
common
interface
TransactionWithReturn
<
R
>
:
TransactionCallbacks
Content copied to clipboard
Functions
Functions
after
Commit
Link copied to clipboard
common
abstract
fun
afterCommit
(
function
:
(
)
->
Unit
)
Content copied to clipboard
after
Rollback
Link copied to clipboard
common
abstract
fun
afterRollback
(
function
:
(
)
->
Unit
)
Content copied to clipboard
rollback
Link copied to clipboard
common
abstract
fun
rollback
(
returnValue
:
R
)
:
Nothing
Content copied to clipboard
Rolls back this transaction.
transaction
Link copied to clipboard
common
abstract
fun
<
R
>
transaction
(
body
:
TransactionWithReturn
<
R
>
.
(
)
->
R
)
:
R
Content copied to clipboard
Begin an inner transaction.