-
public final class SqliteDatabaseExtKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> TtransactionTraced(SQLiteDatabase $self, String operationName, Boolean exclusive, Function2<Span, SQLiteDatabase, T> body)Run body in a transaction marking it as successful if it completes without exception. -
-
Method Detail
-
transactionTraced
final static <T extends Any> T transactionTraced(SQLiteDatabase $self, String operationName, Boolean exclusive, Function2<Span, SQLiteDatabase, T> body)
Run body in a transaction marking it as successful if it completes without exception. A io.opentracing.Span will be created around the transaction and will be closed when the transaction finishes.
- Parameters:
operationName- the name of the Span created around the transaction.exclusive- Run inEXCLUSIVEmode when true,IMMEDIATEmode otherwise.body- the code to be executed inside the transaction.
-
-
-
-