Closed pishguy closed 7 years ago
As I remember there is no such method just use simple code to drop it
private void dropTables(DatabaseWrapper database, Class... models) {
for (Class cl : models) {
ModelAdapter myAdapter = FlowManager.getModelAdapter(cl);
database.execSQL("DROP TABLE IF EXISTS " + myAdapter.getTableName());
database.execSQL(myAdapter.getCreationQuery());
}
}
I found it, you can use Delete.table(s)
Delete.table
clear all rows in the table but id ordering not reset.
in sql command we can use
DROP TABLE IF EXISTS
how can i useDBFlow
to run this command without usingStringQuery
?