SQLiteDatabaseKt

public final class SQLiteDatabaseKt


Summary

Public methods

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

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

Public methods

SQLiteDatabaseKt.transaction

public static final @NonNull T <T extends Object> SQLiteDatabaseKt.transaction(
    SQLiteDatabase receiver,
    boolean exclusive,
    @ExtensionFunctionType Function1<SQLiteDatabase, 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.