🛠️ Code cleanup & added many new features #1
@ -71,7 +71,7 @@ public class MySQLConnection {
|
|||||||
PreparedStatement ps = con.prepareStatement(query);
|
PreparedStatement ps = con.prepareStatement(query);
|
||||||
|
|
||||||
for (int i = 0; i < params.length; i++) {
|
for (int i = 0; i < params.length; i++) {
|
||||||
ps.setObject(i+1, params[i]);
|
ps.setObject(i + 1, params[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ps.executeQuery();
|
return ps.executeQuery();
|
||||||
@ -120,7 +120,7 @@ public class MySQLConnection {
|
|||||||
PreparedStatement ps = con.prepareStatement(query);
|
PreparedStatement ps = con.prepareStatement(query);
|
||||||
|
|
||||||
for (int i = 0; i < params.length; i++) {
|
for (int i = 0; i < params.length; i++) {
|
||||||
ps.setObject(i+1, params[i]);
|
ps.setObject(i + 1, params[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
ps.executeUpdate();
|
ps.executeUpdate();
|
||||||
|
@ -14,7 +14,7 @@ public class TableGenerator {
|
|||||||
private final String tableName;
|
private final String tableName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Basic constructor for the TableGenerator
|
* Basic constructor for the {@link TableGenerator}
|
||||||
*
|
*
|
||||||
* @param tableName Name of the table
|
* @param tableName Name of the table
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user