C# Class Shared.Data.Database

Mostrar archivo Open project: sealuzh/PersonalAnalytics

Public Methods

Method Description
GetInstance ( ) : DatabaseImplementation

Singleton. Returns the instance of the local database.

GetLocalDatabaseSavePath ( ) : string

Singleton. Returns the instance of the remote database.

Singleton. Returns the instance of the settings database.

Returns the path the (SQLight) database file should be stored on the users computer. Every week, a new file is created to make it easy to backup and 'guarantee' no performance issues.

GetSettingsDatabaseSavePath ( ) : string

Returns the path of the database file that a RDP user manually copies there to be merged for the visualizations.

Returns the path of the database file that stores the settings.

Private Methods

Method Description
GetDatabaseSavePath ( string exportPath ) : string

returns the file name of the database file (path) 07.04.15: from now on, there is not a weekly dump anymore (to get back to data from previous weeks), but a yearly dump 20.10.15: from now on, there is not a yearly dump anymore //TODO: check if this results in performance issues

GetSettingsSavePath ( string exportPath ) : string

Method Details

GetInstance() public static method

Singleton. Returns the instance of the local database.
public static GetInstance ( ) : DatabaseImplementation
return DatabaseImplementation

GetLocalDatabaseSavePath() public static method

Singleton. Returns the instance of the remote database. Singleton. Returns the instance of the settings database. Returns the path the (SQLight) database file should be stored on the users computer. Every week, a new file is created to make it easy to backup and 'guarantee' no performance issues.
public static GetLocalDatabaseSavePath ( ) : string
return string

GetSettingsDatabaseSavePath() public static method

Returns the path of the database file that a RDP user manually copies there to be merged for the visualizations. Returns the path of the database file that stores the settings.
public static GetSettingsDatabaseSavePath ( ) : string
return string