🛠️ Code cleanup & added many new features #1

Merged
gnmyt merged 121 commits from features/code-cleanup into master 2021-09-02 13:34:00 +00:00
3 changed files with 5 additions and 4 deletions
Showing only changes of commit a3766aa490 - Show all commits

View File

@ -80,7 +80,7 @@ public class InsertManager {
/**
* Execute the current SQL query
* Executes the current SQL query
*/
public void execute() {
connection.update(prepareStatement(), values.values().toArray());

View File

@ -81,8 +81,8 @@ public abstract class SQLTable {
/**
* Adds a boolean to the table (without allowNull)
*
* @param name The name of the boolean you want to add
* @param extras The extras you want to add to the boolean
* @param name The name of the boolean you want to add
* @param extras The extras you want to add to the boolean
*/
protected void bool(String name, String... extras) {
custom(SQLType.BOOLEAN.getValue(), name, 1, false, "", extras);

View File

@ -9,10 +9,11 @@ public enum SQLType {
DATETIME("DATETIME"),
BOOLEAN("TINYINT");
private String value;
private final String value;
/**
* Basic constructor of the {@link SQLType} enum
*
* @param value The value of the type
*/
SQLType(String value) {