this.hs = hs;
}
public PaasConnection createConnection(JsonObject storageConf, String db) {
String type = storageConf.getString("type");
if (type.equals("mysql")) {
MySqlStorage mysqlStorageConf = new MySqlStorage(storageConf);
try {
Class.forName("com.mysql.jdbc.Driver");
Connection connection = DriverManager
.getConnection(mysqlStorageConf.getJdbcurl(),mysqlStorageConf.getUser(), mysqlStorageConf.getPassword());
return new MySqlConnection(connection);
} catch (ClassNotFoundException e) {
e.printStackTrace();
throw new RuntimeException(e);
} catch (SQLException e) {