Releases: CarmJos/EasySQL
Releases · CarmJos/EasySQL
[0.4.7] 版本更新
What's Changed
- chore(deps): bump maven-shade-plugin from 3.3.0 to 3.4.0 by @dependabot in #63
- chore(deps): bump maven-jar-plugin from 3.2.2 to 3.3.0 by @dependabot in #64
- chore(deps): bump log4j.version from 2.18.0 to 2.19.0 by @dependabot in #65
- chore(deps): bump beecp from 3.3.8 to 3.3.9 by @dependabot in #68
- chore(deps): bump maven-shade-plugin from 3.4.0 to 3.4.1 by @dependabot in #67
- chore(deps): bump annotations from 23.0.0 to 23.1.0 by @dependabot in #70
- chore(deps): bump annotations from 23.1.0 to 24.0.0 by @dependabot in #71
- chore(deps): bump maven-javadoc-plugin from 3.4.1 to 3.5.0 by @dependabot in #72
- chore(deps): bump beecp from 3.3.9 to 3.4.0 by @dependabot in #73
- chore(deps): bump log4j.version from 2.19.0 to 2.20.0 by @dependabot in #74
- chore(deps): bump maven-compiler-plugin from 3.10.1 to 3.11.0 by @dependabot in #75
- chore(deps): bump annotations from 24.0.0 to 24.0.1 by @dependabot in #76
- chore(deps): bump maven-surefire-plugin from 2.22.2 to 3.0.0 by @dependabot in #77
Full Changelog: 0.4.6...0.4.7
[0.4.6] 版本更新: Metadata读取
feat(metadata)
提供方便高效的metadata读取操作方法 [ #59 | #60 ]chore(demo)
提供方便高效的metadata读取操作方法示例。chore(async)
将默认的连接池参数改为 nThreads=4 。
Metadata快捷操作实例
public class EasySQLDemo {
public void metadata(SQLManager sql) {
// 操作数据库元数据,直接返回结果。
CompletableFuture<Boolean> roFuture = sql.fetchMetadata(DatabaseMetaData::isReadOnly);
CompletableFuture<Integer> maxColumnFuture = sql.fetchMetadata(DatabaseMetaData::getMaxColumnsInSelect);
// 操作有 ResultSet 元数据。该方法会自动关闭ResultSet。
CompletableFuture<Boolean> tableExists = sql.fetchMetadata(
meta -> meta.getTables(null, null, "表名", new String[]{"TABKE"}),
resultSet -> resultSet.next()
);
// SQLManager附带了几个常用元数据的获取方法。
CompletableFuture<Boolean> tableExists2 = sql.fetchTableMetadata("表名").validateExist();
CompletableFuture<Boolean> columnExists = sql.fetchTableMetadata("表名").isColumnExists("字段名");
// 更多方法详见 TableMetadataBuilder 。
}
}
What's Changed
- chore(deps): bump maven-javadoc-plugin from 3.4.0 to 3.4.1 by @dependabot in #58
Full Changelog: 0.4.5...0.4.6
[0.4.5] 版本更新
feat(future)
提供更方便的executeFuture使用方法。
What's Changed
- chore(deps): bump beecp from 3.3.7 to 3.3.8 by @dependabot in #56
Full Changelog: 0.4.4...0.4.5
[0.4.4] 版本更新
feat(execute)
提供Future类型的操作支持。
Full Changelog: 0.4.3...0.4.4
[0.4.3] 版本修复
- fix(table): 修复 SQLTable#createReplace 方法递归调用异常
- chore(deps): bump log4j.version from 2.17.2 to 2.18.0
What's Changed
- chore(deps): bump log4j.version from 2.17.2 to 2.18.0 by @dependabot in #52
Full Changelog: 0.4.2...0.4.3
[0.4.2] 版本更新
BREAKING-CHANGE: SQLTable的类型已转变,以往的代码可能失效。
Full Changelog: 0.4.1...0.4.2
[0.4.1] 版本修复
fix(query)
QueryAction#executeAsync()
并不以异步形式执行数据库查询操作。(#49)feat(manager)
提供#setExecutorPool()
方法便于设定异步操作所使用的线程池。
What's Changed
- Bump h2 from 2.1.212 to 2.1.214 by @dependabot in #48
- fix(async): 尝试修复 #49 中提到的问题 by @CarmJos in #50
New Contributors
Full Changelog: 0.4.0...0.4.1
[0.4.0] 版本更新
feat(keys)
现在可以自定义返回的自增主键类型。
现在可以通过returnGeneratedKey(numberClass)
方法要求返回指定类型的自增主键。feat(function)
为SQLHandler
添加 andThen 与 compose 方法
BREAKING CHANGES
- 移除了对于“是否返回主键”的选择,一旦定义了主键类型,就代表action将返回该类型的主键。
Full Changelog: 0.3.18...0.4.0
[0.3.18] 版本修复
fix(debug)
修复debug消息中耗时计算异常的问题,并提供了更精确的耗时计算。
Full Changelog: 0.3.17...0.3.18
[0.3.17] 修改部署
chore
修改项目结构与部署方式docs(repo)
修改依赖库地址介绍ci(deploy)
添加 local-deploy 配置test(query)
添加SuppressWarnings标识
Full Changelog: 0.3.16...0.3.17