TransactorKt

Added in 2.7.0-alpha11

public final class TransactorKt


Summary

Public methods

static final @NonNull R
<R extends Object> deferredTransaction(
    @NonNull Transactor receiver,
    @ExtensionFunctionType @NonNull SuspendFunction1<@NonNull TransactionScope<@NonNull R>, @NonNull R> block
)

Performs a SQLiteTransactionType.DEFERRED within the block.

static final @NonNull R
<R extends Object> exclusiveTransaction(
    @NonNull Transactor receiver,
    @ExtensionFunctionType @NonNull SuspendFunction1<@NonNull TransactionScope<@NonNull R>, @NonNull R> block
)

Performs a SQLiteTransactionType.EXCLUSIVE within the block.

static final void

Executes a single SQL statement that returns no values.

static final @NonNull R
<R extends Object> immediateTransaction(
    @NonNull Transactor receiver,
    @ExtensionFunctionType @NonNull SuspendFunction1<@NonNull TransactionScope<@NonNull R>, @NonNull R> block
)

Performs a SQLiteTransactionType.IMMEDIATE within the block.

Public methods

deferredTransaction

public static final @NonNull R <R extends Object> deferredTransaction(
    @NonNull Transactor receiver,
    @ExtensionFunctionType @NonNull SuspendFunction1<@NonNull TransactionScope<@NonNull R>, @NonNull R> block
)

Performs a SQLiteTransactionType.DEFERRED within the block.

exclusiveTransaction

public static final @NonNull R <R extends Object> exclusiveTransaction(
    @NonNull Transactor receiver,
    @ExtensionFunctionType @NonNull SuspendFunction1<@NonNull TransactionScope<@NonNull R>, @NonNull R> block
)

Performs a SQLiteTransactionType.EXCLUSIVE within the block.

public static final void execSQL(@NonNull PooledConnection receiver, @NonNull String sql)

Executes a single SQL statement that returns no values.

immediateTransaction

public static final @NonNull R <R extends Object> immediateTransaction(
    @NonNull Transactor receiver,
    @ExtensionFunctionType @NonNull SuspendFunction1<@NonNull TransactionScope<@NonNull R>, @NonNull R> block
)

Performs a SQLiteTransactionType.IMMEDIATE within the block.