# HG changeset patch # User František Kučera <franta-hg@frantovo.cz> # Date 1547072108 -3600 # Node ID 8a6b527bc9bb2c47bab3917a0979c2bb1bedea1f # Parent 408b77913c35ce2d64cc0dc8e4f3f127de7e219b CSV input diff -r 408b77913c35 -r 8a6b527bc9bb relpipe-data/download.xml --- a/relpipe-data/download.xml Tue Jan 08 22:53:42 2019 +0100 +++ b/relpipe-data/download.xml Wed Jan 09 23:15:08 2019 +0100 @@ -15,6 +15,7 @@ ssh hg@hg.globalcode.info ls -1d data/relpipe/* | xargs -n1 basename | sort | while read r; do echo "hg clone https://hg.globalcode.info/relpipe/$r;"; done --> <pre><![CDATA[hg clone https://hg.globalcode.info/relpipe/relpipe-in-cli.cpp; +hg clone https://hg.globalcode.info/relpipe/relpipe-in-csv.cpp; hg clone https://hg.globalcode.info/relpipe/relpipe-in-fstab.cpp; hg clone https://hg.globalcode.info/relpipe/relpipe-lib-cli.cpp; hg clone https://hg.globalcode.info/relpipe/relpipe-lib-protocol.cpp; diff -r 408b77913c35 -r 8a6b527bc9bb relpipe-data/implementation.xml --- a/relpipe-data/implementation.xml Tue Jan 08 22:53:42 2019 +0100 +++ b/relpipe-data/implementation.xml Wed Jan 09 23:15:08 2019 +0100 @@ -15,6 +15,7 @@ <m:tabulka> name type subtype language license relpipe-in-cli.cpp executable input c++ GNU GPLv3+ + relpipe-in-csv.cpp executable input c++ GNU GPLv3+ relpipe-in-fstab.cpp executable input c++ GNU GPLv3+ relpipe-lib-cli.cpp library header-only c++ GNU GPLv3+ relpipe-lib-protocol.cpp library header-only c++ GNU LGPLv3+ or GPLv2+ diff -r 408b77913c35 -r 8a6b527bc9bb relpipe-data/specification.xml --- a/relpipe-data/specification.xml Tue Jan 08 22:53:42 2019 +0100 +++ b/relpipe-data/specification.xml Wed Jan 09 23:15:08 2019 +0100 @@ -88,6 +88,17 @@ </p> + <h3>relpipe-in-csv</h3> + + <p> + A tool that parses a CSV (comma-separated values) input and generates a single relation from it. + Values might be "quoted". + If quoted value contains a quote literal, it is escaped by doubling. + Encoding must be UTF-8. + Line ends might be LF or CRLF. + </p> + + <h3>relpipe-in-fstab</h3> <p> @@ -140,6 +151,13 @@ This OpenDocument output can be opened in tools like LibreOffice and further processed (add charts, calculations etc.). </p> + <h3>relpipe-out-csv</h3> + + <p> + A tool that convers relational data into the CSV format (comma-separated values). + Makes sense only for a single relation because boundaries between relations will be lost if there are more of them. + </p> + <h3>relpipe-tr-validator</h3> <p>