Skip to content

Commit

Permalink
新增清除表中数据的方法
Browse files Browse the repository at this point in the history
  • Loading branch information
XFSeven7 committed Nov 21, 2018
1 parent 57bab33 commit 8e6d984
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions library/src/main/java/com/qxf/library/db/DBHelper.java
Expand Up @@ -511,4 +511,15 @@ public <T extends EasyTable> DBHelper delete(Class<T> classzz, String whereClaus
return this;
}

/**
* 清除指定表中数据
*
* @param classzz 指定表
* @param <T> the EasyTable
*/
public <T extends EasyTable> DBHelper clear(Class<T> classzz) {
delete(classzz, "", "");
return this;
}

}

0 comments on commit 8e6d984

Please sign in to comment.