author | František Kučera <franta-hg@frantovo.cz> |
Sat, 21 Jul 2018 23:02:49 +0200 | |
branch | v_0 |
changeset 3 | 7d4525147bf7 |
parent 2 | 2ee70261bd9b |
child 4 | e615c7d87279 |
permissions | -rw-r--r-- |
#include <cstdlib> #include <memory> #include <RelationalWriter.h> int main(int argc, char** argv) { std::shared_ptr<relpipe::writer::RelationalWriter> writer(relpipe::writer::RelationalWriter::create(std::cout)); 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; }