Skip to content

Commit

Permalink
revert ClickhouseJdbcDataSource changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Lai committed May 31, 2023
1 parent 50a64f3 commit f65a6b0
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
import org.mskcc.cbio.portal.util.GlobalProperties;

public class ClickhouseJdbcDataSource extends BasicDataSource {

public ClickhouseJdbcDataSource() {
String connectionString = GlobalProperties.getProperty("db.clickhouse.connection_string");
String user = GlobalProperties.getProperty("db.user");
String password = GlobalProperties.getProperty("db.password");
this.setDriverClassName("com.clickhouse.jdbc.ClickHouseDriver");
this.setUsername("cbio");
this.setPassword("P@ssword1");
this.setUrl("jdbc:clickhouse://localhost:8123/cbioportal");
this.setJmxName("org.cbioportal:DataSource=clickhouse");
this.setUsername(user);
this.setPassword(password);
this.setUrl(connectionString);
}
}

0 comments on commit f65a6b0

Please sign in to comment.