--- a/relpipe-in-cli.cpp Sat Jul 21 22:38:21 2018 +0200
+++ b/relpipe-in-cli.cpp Sat Jul 21 23:02:49 2018 +0200
@@ -6,21 +6,15 @@
int main(int argc, char** argv) {
std::shared_ptr<relpipe::writer::RelationalWriter> writer(relpipe::writer::RelationalWriter::create(std::cout));
- if (writer.get() == nullptr) {
- std::cout << "writer.get() == nullptr" << std::endl;
- } else {
- writer->startRelation(L"my_first_table", //
- {
- {L"a1", L"string"},
- {L"a2", L"string"},
- {L"a3", L"string"}
- }, true);
- writer->writeRecord({
- L"1.1", L"1.2", L"1.3",
- L"2.1", L"2.2", L"2.3",
- L"3.1", L"3.2", L"3.3",
- });
- return 0;
- }
+ writer->startRelation(L"my_first_table",{
+ {L"a1", L"string"},
+ {L"a2", L"string"},
+ {L"a3", L"string"}
+ }, true);
+
+ writer->writeRecord({L"1.1", L"1.2", L"1.3"});
+ writer->writeRecord({L"2.1", L"2.2", L"2.3"});
+ writer->writeRecord({L"3.1", L"3.2", L"3.3"});
+
+ return 0;
}
-