-
public final class SqlDelightExtKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Transacter> UnittransactionTraced(T $self, String operationName, Boolean noEnclosing, Function1<TransactionWithSpanAndWithoutReturn, Unit> body)Starts a Transaction and runs body in that transaction. final static <T extends Transacter, R extends Any> RtransactionTracedWithResult(T $self, String operationName, Boolean noEnclosing, Function1<TransactionWithSpanAndWithReturn<R>, R> body)Starts a Transaction and runs body in that transaction. -
-
Method Detail
-
transactionTraced
final static <T extends Transacter> Unit transactionTraced(T $self, String operationName, Boolean noEnclosing, Function1<TransactionWithSpanAndWithoutReturn, Unit> body)
Starts a Transaction and runs body in that transaction. A span will be created around the transaction code and sent to OpenObserve.
- Parameters:
operationName- the name of the Span created around the coroutine code.noEnclosing- in case we want the currently opened transaction to be automatically closedbody- the code to be executed inside the transaction
-
transactionTracedWithResult
final static <T extends Transacter, R extends Any> R transactionTracedWithResult(T $self, String operationName, Boolean noEnclosing, Function1<TransactionWithSpanAndWithReturn<R>, R> body)
Starts a Transaction and runs body in that transaction. A span will be created around the transaction code and sent to OpenObserve.
- Parameters:
operationName- the name of the Span created around the coroutine code.noEnclosing- in case we want the currently opened transaction to be automatically closedbody- the code to be executed inside the transaction
-
-
-
-