Class SchemaReader
java.lang.Object
me.lucko.luckperms.common.storage.implementation.sql.SchemaReader
-
Method Summary
Modifier and TypeMethodDescriptionfilterStatements(List<String> statements, List<String> currentTables) Filters which statements should be executed based on the current list of tables in the databaseParses a schema file to a list of SQL statementsstatic StringtableFromStatement(String statement)
-
Method Details
-
getStatements
Parses a schema file to a list of SQL statements- Parameters:
is- the input stream to read from- Returns:
- a list of statements
- Throws:
IOException- if an error occurs whilst reading the file
-
tableFromStatement
-
filterStatements
Filters which statements should be executed based on the current list of tables in the database- Parameters:
statements- the statements to filtercurrentTables- the current tables in the database- Returns:
- the filtered list of statements
-