C# Class Shared.Data.Database

Afficher le fichier Open project: sealuzh/PersonalAnalytics

Méthodes publiques

Méthode 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

Méthode 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 méthode

Singleton. Returns the instance of the local database.
public static GetInstance ( ) : DatabaseImplementation
Résultat DatabaseImplementation

GetLocalDatabaseSavePath() public static méthode

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
Résultat string

GetSettingsDatabaseSavePath() public static méthode

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
Résultat string