--- a/src/Configuration.h Fri Dec 13 22:19:41 2019 +0100
+++ b/src/Configuration.h Sat Dec 14 14:00:36 2019 +0100
@@ -30,6 +30,13 @@
// TODO: relpipe::writer::TypeId type;
};
+class TypeCast {
+public:
+
+ relpipe::writer::string_t name;
+ relpipe::writer::string_t type;
+};
+
class Statement {
public:
@@ -46,6 +53,14 @@
* might be also DML or DDL
*/
relpipe::writer::string_t sql;
+ /**
+ * Explicitly defined types of particular attributes.
+ * SQLite uses dynamic typing, so it is often impossible to obtain the proper types from the result set.
+ */
+ std::vector<TypeCast> typeCasts;
+ /**
+ * Query parameters
+ */
std::vector<Parameter> parameters;
};