refactor: 单一数据源的数据集、图表使用对应数据库语法和函数

This commit is contained in:
junjun 2024-04-08 11:17:04 +08:00
parent 56de07866f
commit c0288eac83

View File

@ -0,0 +1,16 @@
package io.dataease.engine.constant;
/**
* @Author Junjun
*/
public class SqlPlaceholderConstants {
public static final String TABLE_PLACEHOLDER = "SELECT * FROM DE_PLACEHOLDER_TABLE_0";
public static final String KEYWORD_PREFIX_REGEX = "[`'\"\\[]?";
public static final String KEYWORD_SUFFIX_REGEX = "[`'\"\\]]?";
public static final String TABLE_PLACEHOLDER_REGEX = "SELECT \\* FROM " + KEYWORD_PREFIX_REGEX + "DE_PLACEHOLDER_TABLE_0" + KEYWORD_SUFFIX_REGEX;
public static final String CALC_FIELD_PLACEHOLDER = "DE_CALC_FIELD_PLACEHOLDER_%s";
}