CSV input v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Wed, 09 Jan 2019 23:15:08 +0100
branchv_0
changeset 228 8a6b527bc9bb
parent 227 408b77913c35
child 229 36e7d81d8740
CSV input
relpipe-data/download.xml
relpipe-data/implementation.xml
relpipe-data/specification.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;
--- 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+
--- 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>