src/Configuration.h
branchv_0
changeset 24 884ece10575d
parent 16 3c51a2c32c86
child 34 24c05e69d68f
--- 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;
 };