Trading System API  3.0
Library for Simulating and Deploying Trading and Investment Strategies
tsa::table_copy_params Class Reference

A class representing the rules to use when copying database tables (usually between databases). More...

#include <TSADBSeriesImport.h>

Inheritance diagram for tsa::table_copy_params:
tsa::object

Public Member Functions

 table_copy_params (void)
 Constructor.
 
 ~table_copy_params (void)
 Destructor.
 
- Public Member Functions inherited from tsa::object
 object (void)
 Constructor.
 
virtual ~object (void)
 Destructor.
 
const char * class_name (void) const
 Returns the class name as returned by the 'Real Time Type Information' (RTTI) mechanism. More...
 
bool has_same_class_as (const object &other) const
 Returns true if self has the same type as other object. More...
 

Public Attributes

size_t buffer_size = 100000
 Size of the copy buffer. The data is written is batches with each batch of a given number of records.
 
bool clear_overlap_in_target = false
 If true, deletes any existing records in the target table which have the same timestamps as records in the target table.
 
date_time copy_from_timestamp = date_time::min
 The timestamp of the beginning of the range of records that is to be copied.
 
date_time copy_to_timestamp = date_time::max
 The timestamp of the end of the range of records to be copied.
 
bool delete_existing = false
 If true, deletes an existing table with the same name as the given target-table-name.
 

Detailed Description

A class representing the rules to use when copying database tables (usually between databases).