Package 

Class SqlDelightExtKt

    • 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 closed
        body - 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 closed
        body - the code to be executed inside the transaction