SQLiteDatabaseKt

public final class SQLiteDatabaseKt


Summary

Public methods

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

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

Public methods

SQLiteDatabaseKt.transaction

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

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

Parameters
boolean exclusive

Run in EXCLUSIVE mode when true, IMMEDIATE mode otherwise.