15 #ifndef TSA_DBSERIES_IMPORT__INCLUDED 16 #define TSA_DBSERIES_IMPORT__INCLUDED 18 #include "TSATypeDef.h" 138 file_import_params(
void);
259 bool delete_existing =
false;
265 bool clear_overlap_in_target =
false;
Utility class to manipulate file system paths. This class is intended to fulfil the requirements of t...
Definition: TSAOS.h:36
bool create_table
true to create a database table if it does not exist.
Definition: TSADBSeriesImport.h:55
Namespace for the 'Trading System API' library.
Definition: original1.TSA3Core.cpp:20
Describes the rules by which a file is to be imported. This structure is to be used in conjunction wi...
Definition: TSADBSeriesImport.h:35
Base class for all other database classes such as:
Definition: TSADBBase.h:47
std::string date_format
The date format (e.g. yyyymmdd, yyyy-mm-dd, dd/mm/yyyy, etc.). See class date for details...
Definition: TSADBSeriesImport.h:78
std::string columns
The field definitions (mandatory). Must be submitted as a data_def string (e.g. "open:d,high:d,low:d,close:d"). See class data_def for details. Note: Timestamp fields are implicit to every record. Do not add a timestamp field unless you need another timestamp that is unrelated to the record timestamp itself, which is created automatically.
Definition: TSADBSeriesImport.h:72
size_t buffer_size
Size of the buffer.
Definition: TSADBSeriesImport.h:118
bool auto_clear_overlap
true to automatically clear overlap.
Definition: TSADBSeriesImport.h:81
char field_separator
The field separator character (mandatory). Set the character that separates the fields in each record...
Definition: TSADBSeriesImport.h:107
bool timestamp_one_field
Timestamp information (date and time) is assumed to be in a single record field, at the beginning of ...
Definition: TSADBSeriesImport.h:94
A class representing the rules to use when copying database tables (usually between databases)...
Definition: TSADBSeriesImport.h:232
const size_t max_size_limit
The maximum value for size_t.
Definition: TSATypeDef.h:81
bool delete_existing_table
Flag to delete an existing table with given name if it exists at time of import. false by default...
Definition: TSADBSeriesImport.h:61
static const date_time min
Constant representing the smallest allowed date_time.
Definition: TSATime.h:449
bool fix_duplicate_timestamps
Often intraday data will not have a high enough timestamp resolution to guarantee unique records...
Definition: TSADBSeriesImport.h:115
static const date_time max
Constant representing the largest allowed date_time.
Definition: TSATime.h:452
std::string target_table
The table name (mandatory).
Definition: TSADBSeriesImport.h:52
Parent class for many library classes.
Definition: TSATypeDef.h:462
date_time skip_below
The skip below.
Definition: TSADBSeriesImport.h:84
char datetime_separator
If the timestamp consists of both a date and time, the separator character is assumed to be a space '...
Definition: TSADBSeriesImport.h:101
bool skip_first_line
Skip the first line, in case the first line does not contain data.
Definition: TSADBSeriesImport.h:64
Class representing a gregorian-date and time-of-day combination. The time component has microsecond r...
Definition: TSATime.h:428
date_time skip_above
The skip above.
Definition: TSADBSeriesImport.h:87
os::path file_path
Full pathname of the file.
Definition: TSADBSeriesImport.h:44