equal
deleted
inserted
replaced
47 */ |
47 */ |
48 relpipe::writer::string_t sql; |
48 relpipe::writer::string_t sql; |
49 std::vector<Parameter> parameters; |
49 std::vector<Parameter> parameters; |
50 }; |
50 }; |
51 |
51 |
|
52 enum class KeepFile { |
|
53 /** The file will be kept even if it was created during this transformation, so all the input data will stay on the disk. */ |
|
54 Always, |
|
55 /** The file will be deleted at the end of this transformation – even if the file already existed. This is potentially dangerous, because we can unintentionally delete a database file. */ |
|
56 Never, |
|
57 /** The file will be kept only if it was already present before the transformation. */ |
|
58 Automatic |
|
59 }; |
|
60 |
52 class Configuration { |
61 class Configuration { |
53 public: |
62 public: |
54 |
63 |
55 |
64 |
56 /** |
65 /** |
59 * The file will be created if it does not exist. |
68 * The file will be created if it does not exist. |
60 */ |
69 */ |
61 relpipe::writer::string_t file; |
70 relpipe::writer::string_t file; |
62 |
71 |
63 /** |
72 /** |
64 * If true, the file (if any was created) will not be deleted when this transformation finishes. |
73 * see KeepFile documentation |
65 */ |
74 */ |
66 relpipe::writer::boolean_t keepFile = false; |
75 KeepFile keepFile = KeepFile::Automatic; |
67 |
76 |
68 std::vector<Statement> statements; |
77 std::vector<Statement> statements; |
69 |
78 |
70 virtual ~Configuration() { |
79 virtual ~Configuration() { |
71 } |
80 } |