We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dca0b37 commit a795205Copy full SHA for a795205
1 file changed
src/main/java/io/github/intisy/utils/custom/SQL.java
@@ -279,6 +279,15 @@ public void deleteTable(String tableName) {
279
}
280
281
282
+ public void execute(String sql) {
283
+ logger.warn("Executing raw command: " + sql);
284
+ try (Statement statement = getConnection().createStatement()) {
285
+ statement.execute(sql);
286
+ } catch (SQLException e) {
287
+ throw new RuntimeException(e);
288
+ }
289
290
+
291
public int insertData(String tableName, Object... columnsAndValues) {
292
validateIdentifier(tableName);
293
if (columnsAndValues.length == 0) {
0 commit comments