loadSqlConfiguration
Loads a SqlConfiguration from file, optionally storing a default example configuration if none exists.
The configuration file name is database.yml in the directory dataFolder. The file is stored and read in UTF-8 format. Legacy database.properties files are migrated to database.yml when possible.
If saveDefault is true, this method creates a default configuration with example properties if none exists. It also creates any parent directories required to store it.
Parameters
dataFolder
The plugins data folder root
saveDefault
Stores an example configuration if the file does not exist