🛠️ Code cleanup & added many new features #1
@ -88,10 +88,8 @@ public class TableGenerator {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates the table you wanted
|
* Creates the table you wanted
|
||||||
*
|
|
||||||
* @return this class
|
|
||||||
*/
|
*/
|
||||||
public TableGenerator create() {
|
public void create() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("CREATE TABLE IF NOT EXISTS ").append(tableName).append(" ( ");
|
sb.append("CREATE TABLE IF NOT EXISTS ").append(tableName).append(" ( ");
|
||||||
|
|
||||||
@ -105,7 +103,6 @@ public class TableGenerator {
|
|||||||
|
|
||||||
sb.append(" ) ENGINE = InnoDB;");
|
sb.append(" ) ENGINE = InnoDB;");
|
||||||
connection.update(sb.toString());
|
connection.update(sb.toString());
|
||||||
return this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user