Package studio.magemonkey.fusion.cfg.sql
Class SQLManager
java.lang.Object
studio.magemonkey.fusion.cfg.sql.SQLManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Connectionstatic DatabaseTypestatic StringReturns the id column definition for the currently configured database type.static StringgetIdColumn(DatabaseType type) Returns a dialect-specific id column definition including the trailing comma.static voidinit()static FusionPlayersSQLplayers()static FusionProfessionsSQLstatic FusionQueuesSQLqueues()static FusionRecipeLimitsSQLstatic voidstatic void
-
Constructor Details
-
SQLManager
public SQLManager()
-
-
Method Details
-
init
public static void init() -
connection
- Throws:
SQLException
-
players
-
professions
-
queues
-
recipeLimits
-
swapToLocal
public static void swapToLocal() -
swapToSql
public static void swapToSql() -
getIdColumn
Returns a dialect-specific id column definition including the trailing comma. For SQLITE (LOCAL) this returns: "Id INTEGER PRIMARY KEY AUTOINCREMENT," For MYSQL/MARIADB this returns: "Id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY," -
getIdColumn
Returns the id column definition for the currently configured database type. -
getDatabaseType
-