← Back to Stormify Documentation

transaction

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

Executes block as a transaction on the default Stormify instance. Inside the block, any convenience call (top-level extensions, CRUDTable, lazy-loaders, PagedList, …) runs on the transaction's connection. Nested calls become savepoints automatically — see Stormify.transaction.