Browse Source

Added global driver and url parameters

master
Christopher Ramey 12 years ago
committed by cdramey
parent
commit
649f2dec53
  1. 2
      src/com/binarythought/jdbcjson/JDBCJSON.java

2
src/com/binarythought/jdbcjson/JDBCJSON.java

@ -64,6 +64,7 @@ public class JDBCJSON
public void run(String job) throws Exception
{
String url = properties.getProperty(job + ".url");
if(url == null){ url = properties.getProperty(".url"); }
String sql = properties.getProperty(job + ".sql");
if(sql == null){ sql = "SELECT * FROM " + job; }
@ -72,6 +73,7 @@ public class JDBCJSON
if(out == null){ out = job + ".json"; }
String driver = properties.getProperty(job + ".driver");
if(driver == null){ driver = properties.getProperty(".driver"); }
if(driver != null){ Class.forName(driver); }
Connection conn = null;

Loading…
Cancel
Save