Skip to content

Releases: Tencent/APIJSON

新增 QuestDB, ASOF JOIN, SAMPLE, LATEST, PARTITION, FILL 等

16 Mar 10:01
Compare
Choose a tag to compare

新增支持 QuestDB-高性能实时分析时序数据库;
新增支持 ~ ASOF JOIN, SAMPLE BY, LATEST ON, PARTITION BY, FILL(LINEAR) 等关键词及与语法;
简化 StringUtil 中各种字符串相关方法;
优化代码;

兼容性

AbstractSQLExecutor 中以下 3 个方法都在最后加了 1 个参数 Map<String, String> keyMap,如果你的项目中有 extends AbstractSQLExecutor 的子类并且重写了以上任意一个方法,则都需要在最后加上这个参数:

String getKey(@NotNull SQLConfig<T> config, @NotNull ResultSet rs, @NotNull ResultSetMetaData rsmd, int row, @NotNull JSONObject table, int columnIndex, Map<String, JSONObject> childMap, Map<String, String> keyMap) throws Exception

Object getValue(@NotNull SQLConfig<T> config, @NotNull ResultSet rs, @NotNull ResultSetMetaData rsmd, int row, @NotNull JSONObject table, int columnIndex, String label, Map<String, JSONObject> childMap, Map<String, String> keyMap) throws Exception

JSONObject onPutColumn(@NotNull SQLConfig<T> config, @NotNull ResultSet rs, @NotNull ResultSetMetaData rsmd, int row, @NotNull JSONObject table, int columnIndex, Join join, Map<String, JSONObject> childMap, Map<String, String> keyMap) throws Exception

支持 TimescaleDB

09 Mar 14:22
Compare
Choose a tag to compare

新增支持 TimescaleDB-高性能实时分析时序数据库,基于 PostgreSQL 并兼容 PostgreSQL 协议

支持 ManticoreSearch 搜索引擎

02 Mar 16:39
Compare
Choose a tag to compare

新增支持 ManticoreSearch-替代 Elasticsearch 的轻量级搜索引擎,兼容 MySQL 协议

支持 CockroachDB

01 Mar 09:54
Compare
Choose a tag to compare

新增支持 CockroachDB

兼容 JDK 1.8+

15 Feb 15:06
Compare
Choose a tag to compare

打包用的 JDK 17 改为 1.8 并 移除指定 JDK 17 打包的 jitpack.yml,兼容 1.8~16 的低版本 JDK

7.4.0-preview

31 Jan 09:22
Compare
Choose a tag to compare

7.4.0 preview release

新增SQLite;长度条件;首页为1;登记企业+2;生态项目+2

08 Dec 15:04
Compare
Choose a tag to compare

新增支持 SQLite,感谢 @afumu 的贡献 #757
新增支持 key[ 表示 length(key) 和 key{ 表示 json_length(key),可与 与或非逻辑符、其它各种功能符 组合使用;
新增支持分页页码 page 从 1 开始,也就是 首页页码为 1,与 UI 一致,APIJSONParser.IS_START_FROM_1 = true 开启;
image
增加输出 null 值的开关 AbstractSQLExecutor.ENABLE_OUTPUT_NULL_COLUMN = true,感谢 @calmcc 的贡献 #770

fix: 自关联 Table:alias 拼接 SQL 表名异常,感谢 @zxcwindy 的贡献 #750
fix: 调整 parseResponse 获取 SQLExecutor 方式,感谢 @alittle-yu 的贡献 #767
getSQLTableWithAlias 带上原表名,避免 alias 与其它表名/字段 冲突;
优化 GitHub 对 tab 和 IDE 处理不一致导致缩进显示问题;

用户登记新增 上海钰亿环保科技有限公司,感谢 @Reynold3D 的贡献 #768
北明软件登记,感谢 @zxcwindy 的贡献 #747
通用文档:功能符新增空值键值对 "@null":"key1,key2..."
更新 UnitAuto 简介: 最先进、最省事、ROI 最高的单元测试,机器学习 零代码、全方位、自动化 测试 方法/函数,用户包含腾讯、快手、某 500 强巨头等;
https://github.com/TommyLemon/UnitAuto

生态项目新增 review_plan-复习提醒Web版(Java技术练习项目),感谢 @PPXcodeTry 的贡献;
https://gitee.com/PPXcodeTry/review_plan

新增 APIJSON + Nutz 框架 + NutzBoot 的 Demo,感谢 @vincent109 的贡献;
https://github.com/vincent109/apijson-nutz

创作不易,打开以上链接右上角点亮 ⭐️ Star 支持热心的作者吧 ^_^

兼容 jdk1.8+ 及 SpringBoot2.x

28 Jul 15:42
5f9cee7
Compare
Choose a tag to compare

兼容 jdk1.8+ 及 SpringBoot2.x;

完整 Demo 见以下 Assets 附件 APIJSONBoot-MultiDataSource-APIJSON-7.0.3-jdk1.8-springboot2.5.zip。

兼容性:

如果有用到 apijson-framework,必须 6.3.0,并且排除它依赖的 APIJSON ORM;
如果有用到 apijson-column 或 apijson-router,都必须用 1.8.0,并且排除它们依赖的 APIJSON ORM;

        <!-- 可使用 libs 目录的 apijson-orm.jar, apijson-framework.jar, apijson-column.jar 来替代,两种方式二选一 <<<<<<<<<< -->
        <dependency>
            <groupId>com.github.Tencent</groupId>
            <artifactId>APIJSON</artifactId>
            <version>7.0.3-jdk1.8</version>
        </dependency>
        <dependency>
            <groupId>com.github.APIJSON</groupId>
            <artifactId>apijson-framework</artifactId>
            <version>6.3.0</version>
            <exclusions>
                <exclusion>
                    <groupId>com.github.Tencent</groupId>
                    <artifactId>APIJSON</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.github.APIJSON</groupId>
            <artifactId>apijson-column</artifactId>
            <version>1.8.0</version>
            <exclusions>
                <exclusion>
                    <groupId>com.github.Tencent</groupId>
                    <artifactId>APIJSON</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.github.APIJSON</groupId>
            <artifactId>apijson-router</artifactId>
            <version>1.8.0</version>
            <exclusions>
                <exclusion>
                    <groupId>com.github.Tencent</groupId>
                    <artifactId>APIJSON</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <!-- 可使用 libs 目录的 apijson-orm.jar, apijson-framework.jar, apijson-column.jar 来替代,两种方式二选一 >>>>>>>>>> -->

优化分页;引用路径支持特殊符号等

30 Jun 15:15
Compare
Choose a tag to compare

新增支持 key[]:{ query:2 或 query:"ALL" } 默认返回列表分页信息;
image

新增把引用赋值路径 URL encode 后的值 decode 回原始值,例如 %2Fuser%2Flist -> /user/list;
image

解决 format: true 对应 key 返回不是小驼峰,而是强制小写,例如 User[] 返回不是 userList 而是 userlist;

映射表名和数据库(模式)名

08 Jun 15:05
76fc227
Compare
Choose a tag to compare

feat: 实现和配置 TABLE_SCHEMA_MAP 映射表名和数据库(模式)名,感谢 @csx-bill 的贡献 #27