autocomplete
, to easily connect to
entities
and their
property definitions
.
•
@Transaction
tells Room that the following SQL statements should be executed
in a
single transaction
.
•
@Delete
allows you to automatically create
DELETE FROM
queries, but it requires
a parameter to be removed; e.g., a
Question
object.
•
@Update
updates a record in the database
if it already exists
, or omits the
changes, if it doesn't, leaving the database
unchanged
.
• Writing tests with
Espresso
is a good way to see if your database code works
properly.
• You can run Espresso tests,
without manually going through the app
, in less
than a few seconds.
• Inserting the data and reading from the databse in Espresso is safe, because you
can work with an
in-memory
version of the database.
• In-memory databases
Do'stlaringiz bilan baham: |