refactor(sqlquery):增加动态参数功能;增加选中多表通过AI生成SQL语句功能#3159
Open
RankRao wants to merge 8 commits into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3159 +/- ##
==========================================
+ Coverage 82.25% 82.84% +0.59%
==========================================
Files 136 137 +1
Lines 21759 22215 +456
==========================================
+ Hits 17897 18405 +508
+ Misses 3862 3810 -52 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
1、sql查询支持动态参数,
示例sql:select * from table_name where add_date between '${start_date}' and '${end_date}';
通过${}的固定格式,在sql查询底下增加可配置的动态参数输入框,最终sql提交查询替换参数占位符为文本值。
#3019
2、增强AI查询功能
当前为单表结构输入给AI提示词,改为选中多表(去重)提交给后台,查询对应表结构,和自然语言一起输入给AI。增加AI输出的联表join能力。