← Back to Stormify Documentation

transaction

fun <R> transaction(block: TransactionContext.() -> R): R

Executes a block within a database transaction with automatic commit/rollback.