Skip to content

Commit

Permalink
Initial bigquery support. (#210)
Browse files Browse the repository at this point in the history
* Beginning of bigquery support, adding the driver lookup to the webAPI initialization process.
  • Loading branch information
myounglai authored and chrisknoll committed Sep 12, 2017
1 parent f91c031 commit 91df6c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,6 @@
<flyway.locations>classpath:db/migration/sqlserver</flyway.locations>
<hibernate.dialect>org.hibernate.dialect.SQLServer2012Dialect</hibernate.dialect>
</properties>
</profile>
</profile>
</profiles>
</project>
2 changes: 1 addition & 1 deletion src/main/java/org/ohdsi/webapi/DataAccessConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public DataSource primaryDataSource() {
//note autocommit defaults vary across vendors. use provided @Autowired TransactionTemplate

String[] supportedDrivers;
supportedDrivers = new String[]{"org.postgresql.Driver", "com.microsoft.sqlserver.jdbc.SQLServerDriver", "oracle.jdbc.driver.OracleDriver", "com.amazon.redshift.jdbc41.Driver", "com.cloudera.impala.jdbc4.Driver"};
supportedDrivers = new String[]{"org.postgresql.Driver", "com.microsoft.sqlserver.jdbc.SQLServerDriver", "oracle.jdbc.driver.OracleDriver", "com.amazon.redshift.jdbc41.Driver", "com.cloudera.impala.jdbc4.Driver", "net.starschema.clouddb.jdbc.BQDriver"};

for (String driverName : supportedDrivers) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class VocabularyServiceIT extends WebApiIT {
public void concept() {
log.info("Testing concept endpoint");
final ResponseEntity<String> entity = getRestTemplate().getForEntity(this.endpointConcept, String.class);
assertOK(entity);
}

@Test
Expand Down

0 comments on commit 91df6c1

Please sign in to comment.