Add update api

This commit is contained in:
2020-10-18 22:18:01 +02:00
parent da170f9dd0
commit d922f1a842
2 changed files with 14 additions and 4 deletions
@@ -126,9 +126,19 @@ public class TippligaSQLConnector {
try {
stmt = con.createStatement();
rset = stmt.executeQuery(queryString);
} catch (SQLException throwables) {
throwables.printStackTrace();
} catch (SQLException e) {
logger.error(e.getStackTrace());
}
return rset;
}
public void executeUpdate (String queryString){
Statement stmt;
try {
stmt = con.createStatement();
stmt.executeUpdate(queryString);
} catch (SQLException e) {
logger.error(e.getStackTrace());
}
}
}