27 | | == Configuration |
28 | | The database default database as created with |
| 27 | == Database Configuration |
| 28 | The database default database as created with DBConnection() is based on SQLite for quick, secure and easy setup. It works as follows |
| 29 | * If the environment variable "accountdatabase" is set, this is used to locate the sql database |
| 30 | * If the variable is not set, the default value "src/main/resources/accounts.db" is used. |
| 31 | |
| 32 | This way, the default without environment variable can work when doing junit tests while also it allows you to make it work with environment variable in a more complex situation like a tomcat server. If you need to you can always override DBConnection#getDatabaseURL to return something more suited. You can also use a different database than SQLite by verriding DBConnection#getDriverName(). |
| 33 | |