feat: add cross-database json support#109
Merged
Merged
Conversation
zhou-hao
reviewed
May 25, 2026
| Object value = condition.getValue(); | ||
| boolean number = isNumberExpression(termType, value); | ||
| JsonScalarExpression expression = createScalarExpression(columnFullName, column, condition, number); | ||
| PrepareSqlFragments fragments = PrepareSqlFragments.of(); |
| if (data instanceof CharSequence) { | ||
| return data.toString(); | ||
| } | ||
| if (PG_OBJECT_CLASS.equals(data.getClass().getName())) { |
Member
|
本轮已继续完善 PR:
已执行验证: mvn -pl hsweb-easy-orm-rdb \
-Dtest=JsonCodecSupportTest,JsonTermFragmentBuilderTest,BatchInsertSqlBuilderCompatibilityTest test结果:10 tests, 0 failures, 0 errors。 mvn -pl hsweb-easy-orm-rdb \
-Dtest=DefaultSaveOrUpdateOperatorTest,DefaultUpsertOperatorTest,UpsertOperatorParametersTest,PostgresqlBasicTest test结果:22 tests, 0 failures, 0 errors。 能力边界说明:repository 层建议统一使用 |
Member
|
已补一层语义化 JSON DSL:
同时补了 已推送到 PR 分支: |
Member
|
继续完善:
验证:
备注:本机默认 Maven 使用 JDK8,会因项目 target 17 失败;已切换 JDK17 执行。 |
Member
|
补充提交: 本次增加 JSON 查询集成测试中的 strict mode 覆盖:
已执行集成测试: JAVA_HOME=$(/usr/libexec/java_home -v 17) mvn -pl hsweb-easy-orm-rdb -Dtest=PostgresqlJsonQueryIntegrationTest,Mysql8JsonQueryIntegrationTest,OpengaussJsonQueryIntegrationTest,SqlServerJsonQueryIntegrationTest test结果:8 passed, 0 failed, 0 skipped。覆盖 PostgreSQL、MySQL 8、OpenGauss、SQLServer。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
已本地验证
说明