Package ch.njol.skript.variables
Class SQLiteStorage
java.lang.Object
ch.njol.skript.variables.VariablesStorage
ch.njol.skript.variables.SQLStorage
ch.njol.skript.variables.SQLiteStorage
- 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_LENGTH
Fields inherited from class ch.njol.skript.variables.VariablesStorage
backupTask, closed, connectionLock, databaseName, file
-
Method Summary
Modifier and TypeMethodDescriptionlib.PatPeter.SQLibrary.Database
initialize
(SectionNode config) Initializes an SQL database with the user provided configuration section for loading the database.protected boolean
Checks 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, setTableName
Methods inherited from class ch.njol.skript.variables.VariablesStorage
clearChangesQueue, getValue, getValue, load, startBackupTask
-
Method Details
-
initialize
Description copied from class:SQLStorage
Initializes an SQL database with the user provided configuration section for loading the database.- Specified by:
initialize
in 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:VariablesStorage
Checks if this storage requires a file for storing its data.- Specified by:
requiresFile
in classVariablesStorage
- Returns:
- if this storage needs a file.
-