src/Configuration.h
branchv_0
changeset 59 a1775ba6d056
parent 47 428c278af4be
equal deleted inserted replaced
58:a4907b207f0c 59:a1775ba6d056
    81 	const relpipe::writer::string_t pattern;
    81 	const relpipe::writer::string_t pattern;
    82 	const relpipe::writer::string_t replacement;
    82 	const relpipe::writer::string_t replacement;
    83 	const relpipe::writer::boolean_t replace;
    83 	const relpipe::writer::boolean_t replace;
    84 };
    84 };
    85 
    85 
       
    86 enum class OnDuplicateRelation {
       
    87 	Fail,
       
    88 	Insert,
       
    89 	// Extend,
       
    90 	// Drop,
       
    91 	// Skip,
       
    92 	// RenameNew,
       
    93 	// RenameOld,
       
    94 };
       
    95 
    86 class Configuration {
    96 class Configuration {
    87 public:
    97 public:
    88 
    98 
    89 
    99 
    90 	relpipe::writer::string_t dataSourceName;
   100 	relpipe::writer::string_t dataSourceName;
    91 	
   101 	
    92 	relpipe::writer::string_t dataSourceString;
   102 	relpipe::writer::string_t dataSourceString;
       
   103 	
       
   104 	OnDuplicateRelation onDuplicateRelation = OnDuplicateRelation::Fail;
    93 
   105 
    94 	std::vector<Statement> statements;
   106 	std::vector<Statement> statements;
    95 
   107 
    96 	/**
   108 	/**
    97 	 * SQL script to be executed before the relational input.
   109 	 * SQL script to be executed before the relational input.