--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/include/RelationalWriter.h Sat Jul 21 17:30:25 2018 +0200
@@ -0,0 +1,29 @@
+#pragma once
+
+#include <string>
+#include <iostream>
+#include <vector>
+
+#include "../include/typedefs.h"
+
+namespace relpipe {
+namespace writer {
+
+class RelationalWriter {
+public:
+
+ virtual ~RelationalWriter() = default;
+
+ virtual integer_t toTypeId(const string_t typeCode) = 0;
+
+ virtual string_t toTypeCode(const integer_t typeId) = 0;
+
+ virtual void startRelation(std::vector<std::pair<string_t, string_t>> attributes, boolean_t writeHeader) = 0;
+
+ virtual void writeRecord(std::vector<string_t> attributes) = 0;
+
+ static RelationalWriter* create(std::ostream &output);
+};
+
+}
+}