Skip to content

Commit

Permalink
3.0.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzue committed May 19, 2021
1 parent 2d953f7 commit fb5bb0d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "com.kongzue.dbv3demo"
minSdkVersion 19
targetSdkVersion 29
versionCode 13
versionName "3.0.2"
versionCode 16
versionName "3.0.3.5"
}
buildTypes {
release {
Expand Down
6 changes: 3 additions & 3 deletions dbv3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ def siteUrl = 'https://github.com/kongzue/DBV3' //项目在github主页地址
def gitUrl = 'https://github.com/kongzue/DBV3.git' //Git仓库的地址

group = "com.kongzue.db"//发布aar前缀根节点
version = "3.0.3.4"//发布aar的库版本
version = "3.0.3.5"//发布aar的库版本

android {
compileSdkVersion 29

defaultConfig {
minSdkVersion 19
targetSdkVersion 29
versionCode 15
versionName "3.0.3.4"
versionCode 16
versionName "3.0.3.5"
}

buildTypes {
Expand Down
11 changes: 11 additions & 0 deletions dbv3/src/main/java/com/kongzue/dbv3/DB.java
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,17 @@ public List<DBData> find() {
return DBHelper.getInstance().findData(tableName, null, sort, whereConditions, limitStart, limitCount);
}

/**
* 查询该表第一个符合条件的数据
*
* @return 查询结果
*/
public DBData findSingle() {
List<DBData> dataList = DBHelper.getInstance().findData(tableName, null, sort, whereConditions, limitStart, limitCount);
if (dataList == null || dataList.isEmpty()) return null;
return dataList.get(0);
}

/**
* 设置分页查询条件
*
Expand Down

0 comments on commit fb5bb0d

Please sign in to comment.