SupportSQLiteDatabaseKt
Added in 2.7.0
public final class SupportSQLiteDatabaseKt
Summary
Public methods |
|
|---|---|
static final @NonNull T |
<T extends Object> transaction(Run |
Public methods
transaction
public static final @NonNull T <T extends Object> transaction(
@NonNull SupportSQLiteDatabase receiver,
boolean exclusive,
@NonNull Function1<@NonNull SupportSQLiteDatabase, @NonNull T> body
)
Run body in a transaction marking it as successful if it completes without exception.
| Parameters | |
|---|---|
boolean exclusive |
Run in |
@NonNull Function1<@NonNull SupportSQLiteDatabase, @NonNull T> body |
Lambda to be run in the transaction. |