Android Room version 1.1.0 now provides the method clearAllTables()
.
Altough this method is very convenient, it does not clear the auto-increment value generated by the by autoGenerate()
, as stated in the official documentation.
I would also like to clear the primary keys of all the tables in my database, without having to call individual queries for each table.