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. A legacy database.properties file is migrated to database.yml if the latter does not exist yet, and deleted after a successful migration.
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