Package ch.njol.skript.variables
Class MySQLStorage
java.lang.Object
ch.njol.skript.variables.VariablesStorage
ch.njol.skript.variables.SQLStorage
ch.njol.skript.variables.MySQLStorage
- All Implemented Interfaces:
Closeable
-
Field Summary
Fields inherited from class ch.njol.skript.variables.SQLStorage
MAX_CLASS_CODENAME_LENGTH, MAX_VALUE_SIZE, MAX_VARIABLE_NAME_LENGTHFields inherited from class ch.njol.skript.variables.VariablesStorage
backupTask, closed, connectionLock, databaseName, file -
Method Summary
Modifier and TypeMethodDescriptionlib.PatPeter.SQLibrary.Databaseinitialize(SectionNode config) Initializes an SQL database with the user provided configuration section for loading the database.protected booleanChecks if this storage requires a file for storing its data.Methods inherited from class ch.njol.skript.variables.SQLStorage
allLoaded, checkDatabase, close, connect, disconnect, getFile, getFormattedCreateQuery, getTableName, load_i, save, setTableNameMethods inherited from class ch.njol.skript.variables.VariablesStorage
clearChangesQueue, getValue, getValue, load, startBackupTask
-
Method Details
-
initialize
Description copied from class:SQLStorageInitializes an SQL database with the user provided configuration section for loading the database.- Specified by:
initializein classSQLStorage- Parameters:
config- The configuration from the config.sk that defines this database.- Returns:
- A Database implementation from SQLibrary.
-
requiresFile
protected boolean requiresFile()Description copied from class:VariablesStorageChecks if this storage requires a file for storing its data.- Specified by:
requiresFilein classVariablesStorage- Returns:
- if this storage needs a file.
-