dca_interface  6.3.4
dca::DbConnectionLocalData Struct Reference

#include <base_classes.h>

Detailed Description

Stores the connection data for a local database.

Fill out this structure if you are using a local DbConnection.

When using local databases, you will receive update files in a frequency determined by the update server. The update files will be applied to the database cache on the next call to DcaInstance::Schedule(). The local database will also be merged at regular intervals with all existing update files and replaced by the merged data.

The start time and frequency of the database merge process can be determined when creating a DbConnection by setting the parameters in this structure. The default database merge frequency is once per day.

See also
dca::UpdateModule::performUpdate(), dca::DcaInstance::schedule()

Definition at line 675 of file base_classes.h.

Public Attributes

unsigned int dbUpdateIntervalMinutes
 
time_t dbUpdateStartLocalTime
 

Member Data Documentation

◆ dbUpdateIntervalMinutes

unsigned int dca::DbConnectionLocalData::dbUpdateIntervalMinutes

This is the interval of the database merge process given in minutes. Minimum is 1, when left at 0 the default value of 24*60 (1 day) is used

Definition at line 679 of file base_classes.h.

◆ dbUpdateStartLocalTime

time_t dca::DbConnectionLocalData::dbUpdateStartLocalTime

The start time for the database merge process. If left at 0, the current time plus a small random offset is used.

Definition at line 682 of file base_classes.h.


The documentation for this struct was generated from the following file: