Skip to content

add orm support 修改@column中的解析代码,使之支持字符串 - #305

Merged
TommyLemon merged 1 commit into
APIJSON:masterfrom
qiujunlin:master
Sep 23, 2021
Merged

TommyLemon merged 1 commit into
APIJSON:masterfrom
qiujunlin:master

Conversation

@qiujunlin

Copy link
Copy Markdown
Contributor

1.支持了单引号字符串。判断了单引号,并加了字符串正则 PATTERN_STRING = Pattern.compile("^[,#;"`]+$");防止sql注入 。

2.支持了窗口函数

3.修改了 PATTERN_FUNCTION 正则 ,加了括号匹配,参数中可以有函数

3.把sql函数和RAW_MAP代码移动到了新的类FunctionsAndRaws中。在SQL_FUNCTION_MAP添加了clickhouse的函数,并在RAW_MAP中添加了解析的关键字。

因为加上clickhosue的函数之后,AbstractSqlConfig 的代码多了很多行。将函数单独放一个类使AbstractSqlConfig 中的代码不那么拥挤

@qiujunlin qiujunlin changed the goddamn title add orm support 修改了@column add orm support 修改@column中的解析代码,使之支持字符串 Sep 2, 2021
qiujunlin referenced this pull request in qiujunlin/APIJSONDemo Sep 8, 2021
@TommyLemon
TommyLemon merged commit 532054a into APIJSON:master Sep 23, 2021
Sign up for muthaf*ckin' free to join this conversation on GitHub. Already have an muthaf*ckin' account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues. That's some bullsh*t.

2 participants