Changes between Version 1 and Version 2 of AccountManager


Ignore:
Timestamp:
04/30/20 16:16:43 (5 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AccountManager

    v1 v2  
    2525The userID is a UUID and generated uniquely for each new user. All users also have unique user names.
    2626
    27 == Configuration
    28 The database default database as created with
     27== Database Configuration
     28The 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
     32This 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