phoenix实现

This commit is contained in:
xielongwang
2020-08-27 21:45:37 +08:00
parent 2703ddebb4
commit 9c273815a3
13 changed files with 619 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ import org.apache.maven.plugins.annotations.Parameter;
import javax.sql.DataSource;
import java.util.List;
import java.util.Properties;
import static cn.smallbun.screw.core.constant.DefaultConstants.*;
import static cn.smallbun.screw.core.util.FileUtils.getRealFilePath;
@@ -267,6 +268,11 @@ public class RunDocMojo extends AbstractMojo {
|| JdbcUtils.getDbType(getJdbcUrl()).equals(DatabaseType.MARIADB)) {
hikariConfig.addDataSourceProperty(USE_INFORMATION_SCHEMA, "true");
}
//phoenix
if (JdbcUtils.getDbType(getJdbcUrl()).equals(DatabaseType.PHOENIX)) {
hikariConfig.addDataSourceProperty(PHOENIX_SYS_NAMESPACE_MAPPING,true);
hikariConfig.addDataSourceProperty(PHOENIX_NAMESPACE_MAPPING,true);
}
//oracle
if (JdbcUtils.getDbType(getJdbcUrl()).equals(DatabaseType.ORACLE)) {
hikariConfig.addDataSourceProperty(ORACLE_REMARKS, "true");