42 lines
1.2 KiB
Java
42 lines
1.2 KiB
Java
package io.dataease.provider.ck;
|
|
|
|
import io.dataease.provider.SQLConstants;
|
|
|
|
import static io.dataease.datasource.constants.DatasourceTypes.ck;
|
|
|
|
/**
|
|
* @Author gin
|
|
* @Date 2021/7/8 7:22 下午
|
|
*/
|
|
public class CKConstants extends SQLConstants {
|
|
public static final String KEYWORD_TABLE = ck.getKeywordPrefix() + "%s" + ck.getKeywordSuffix();
|
|
|
|
public static final String KEYWORD_FIX = "%s." + ck.getKeywordPrefix() + "%s" + ck.getKeywordSuffix();
|
|
|
|
public static final String toInt32 = "toInt32(%s)";
|
|
|
|
public static final String toDateTime = "toDateTime(%s)";
|
|
|
|
public static final String toInt64 = "toInt64(%s)";
|
|
|
|
public static final String toFloat64 = "toFloat64(%s)";
|
|
|
|
public static final String formatDateTime = "formatDateTime(%s,'%s')";
|
|
|
|
public static final String toDecimal = "toDecimal64(%s,2)";
|
|
|
|
public static final String DEFAULT_DATE_FORMAT = "%Y-%m-%d %H:%M:%S";
|
|
|
|
public static final String WHERE_VALUE_NULL = "(NULL,'')";
|
|
|
|
public static final String WHERE_VALUE_VALUE = "'%s'";
|
|
|
|
public static final String AGG_COUNT = "COUNT(*)";
|
|
|
|
public static final String AGG_FIELD = "%s(%s)";
|
|
|
|
public static final String WHERE_BETWEEN = "'%s' AND '%s'";
|
|
|
|
public static final String BRACKETS = "(%s)";
|
|
}
|