equal
deleted
inserted
replaced
28 |
28 |
29 relpipe::writer::string_t value; |
29 relpipe::writer::string_t value; |
30 // TODO: relpipe::writer::TypeId type; |
30 // TODO: relpipe::writer::TypeId type; |
31 }; |
31 }; |
32 |
32 |
|
33 class TypeCast { |
|
34 public: |
|
35 |
|
36 relpipe::writer::string_t name; |
|
37 relpipe::writer::string_t type; |
|
38 }; |
|
39 |
33 class Statement { |
40 class Statement { |
34 public: |
41 public: |
35 |
42 |
36 virtual ~Statement() { |
43 virtual ~Statement() { |
37 } |
44 } |
44 /** |
51 /** |
45 * SQL code, usually some SELECT; |
52 * SQL code, usually some SELECT; |
46 * might be also DML or DDL |
53 * might be also DML or DDL |
47 */ |
54 */ |
48 relpipe::writer::string_t sql; |
55 relpipe::writer::string_t sql; |
|
56 /** |
|
57 * Explicitly defined types of particular attributes. |
|
58 * SQLite uses dynamic typing, so it is often impossible to obtain the proper types from the result set. |
|
59 */ |
|
60 std::vector<TypeCast> typeCasts; |
|
61 /** |
|
62 * Query parameters |
|
63 */ |
49 std::vector<Parameter> parameters; |
64 std::vector<Parameter> parameters; |
50 }; |
65 }; |
51 |
66 |
52 enum class KeepFile { |
67 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. */ |
68 /** The file will be kept even if it was created during this transformation, so all the input data will stay on the disk. */ |