SQLiteDatabaseKt

Added in 1.1.0

public final class SQLiteDatabaseKt


Summary

Public methods

static final @NonNull T
<T extends Object> transaction(
    @NonNull SQLiteDatabase receiver,
    boolean exclusive,
    @ExtensionFunctionType @NonNull Function1<@NonNull SQLiteDatabase, @NonNull T> body
)

Run body in a transaction marking it as successful if it completes without exception.

Public methods

transaction

public static final @NonNull T <T extends Object> transaction(
    @NonNull SQLiteDatabase receiver,
    boolean exclusive,
    @ExtensionFunctionType @NonNull Function1<@NonNull SQLiteDatabase, @NonNull T> body
)

Run body in a transaction marking it as successful if it completes without exception.

The transaction that will be executed.

Parameters
boolean exclusive

Run in EXCLUSIVE mode when true, IMMEDIATE mode otherwise.