author | František Kučera <franta-hg@frantovo.cz> |
Mon, 21 Feb 2022 00:43:11 +0100 | |
branch | v_0 |
changeset 329 | 5bc2bb8b7946 |
parent 299 | dd7aeff5ef0c |
permissions | -rw-r--r-- |
23
0d2729ed16ed
zkouška interního odkazu
František Kučera <franta-hg@frantovo.cz>
parents:
18
diff
changeset
|
1 |
<stránka |
0d2729ed16ed
zkouška interního odkazu
František Kučera <franta-hg@frantovo.cz>
parents:
18
diff
changeset
|
2 |
xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana" |
0d2729ed16ed
zkouška interního odkazu
František Kučera <franta-hg@frantovo.cz>
parents:
18
diff
changeset
|
3 |
xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro"> |
0d2729ed16ed
zkouška interního odkazu
František Kučera <franta-hg@frantovo.cz>
parents:
18
diff
changeset
|
4 |
|
282
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
5 |
<nadpis>Release v0.14</nadpis> |
264
d39cfc926f95
XMLTable, SQL, v0.13
František Kučera <franta-hg@frantovo.cz>
parents:
258
diff
changeset
|
6 |
<perex>sixth public release of Relational pipes</perex> |
282
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
7 |
<m:release>v0.14</m:release> |
4
1bb39595a51c
genrování hlavní nabídky #1
František Kučera <franta-hg@frantovo.cz>
parents:
2
diff
changeset
|
8 |
|
2
ab9099ff88fa
vkládání zápatí, jmenné prostory, saxon
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
9 |
<text xmlns="http://www.w3.org/1999/xhtml"> |
ab9099ff88fa
vkládání zápatí, jmenné prostory, saxon
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
10 |
<p> |
256 | 11 |
We are pleased to introduce you the new development version of <m:name/>. |
282
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
12 |
This release brings the Bash completion scripts, improved SQL and AWK transformations and fixes the license version. |
241 | 13 |
</p> |
14 |
||
15 |
<ul> |
|
16 |
<li> |
|
282
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
17 |
<strong>Bash completion</strong>: |
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
18 |
thanks to the Bash completion scripts, the shell now suggests/completes the CLI arguments of these commands: |
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
19 |
<code>relpipe-in-filesystem</code>, |
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
20 |
<code>relpipe-in-xmltable</code>, |
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
21 |
<code>relpipe-tr-awk</code>, |
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
22 |
<code>relpipe-tr-guile</code>, |
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
23 |
<code>relpipe-tr-sql</code>, |
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
24 |
<code>relpipe-in-sql</code>. |
250 | 25 |
</li> |
26 |
||
27 |
<li> |
|
282
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
28 |
<strong>Improved SQL transformation</strong>: |
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
29 |
the <code>relpipe-tr-sql</code> can now work also in the <code>relpipe-in-sql</code> mode (symlink to the same binary), |
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
30 |
so it can be used as an input filter for reading SQL scripts (instead of relational data) or as an SQLite client (options <code>--file</code> and <code>--file-keep</code>, see examples). |
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
31 |
There are also new options <code>--copy</code> and <code>--copy-renamed</code> for copying particular (or all) relations from the input to the output. |
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
32 |
Such relations are specified by a regular expression and can be renamed using regular expressions replacement string. |
264
d39cfc926f95
XMLTable, SQL, v0.13
František Kučera <franta-hg@frantovo.cz>
parents:
258
diff
changeset
|
33 |
</li> |
d39cfc926f95
XMLTable, SQL, v0.13
František Kučera <franta-hg@frantovo.cz>
parents:
258
diff
changeset
|
34 |
|
d39cfc926f95
XMLTable, SQL, v0.13
František Kučera <franta-hg@frantovo.cz>
parents:
258
diff
changeset
|
35 |
<li> |
282
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
36 |
<strong>Improved AWK transformation</strong>: |
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
37 |
this tool now supports the <code>--where</code> option, which can be used in addition to the more generic <code>--for-each</code> option. |
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
38 |
The argument syntax now better expresses the intention (filtering records) and matches the syntax of the <code>relpipe-tr-guile</code> tool. |
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
39 |
</li> |
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
40 |
|
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
41 |
<li> |
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
42 |
<strong>GNU GPLv3 license</strong>: the license version is now fixed to version 3. In the future, we can upgrade the license. |
241 | 43 |
</li> |
258
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
44 |
|
241 | 45 |
</ul> |
256 | 46 |
|
241 | 47 |
<p> |
297
192b0059a6c4
Release v0.16 – ODBC in SQL + JACK MIDI
František Kučera <franta-hg@frantovo.cz>
parents:
282
diff
changeset
|
48 |
n.b. the <code>--file</code> and <code>--file-keep</code> have been dropped in <m:a href="release-v0.16">v0.16</m:a> |
192b0059a6c4
Release v0.16 – ODBC in SQL + JACK MIDI
František Kučera <franta-hg@frantovo.cz>
parents:
282
diff
changeset
|
49 |
(replacement is described in the v0.16 release notes). |
192b0059a6c4
Release v0.16 – ODBC in SQL + JACK MIDI
František Kučera <franta-hg@frantovo.cz>
parents:
282
diff
changeset
|
50 |
</p> |
192b0059a6c4
Release v0.16 – ODBC in SQL + JACK MIDI
František Kučera <franta-hg@frantovo.cz>
parents:
282
diff
changeset
|
51 |
|
192b0059a6c4
Release v0.16 – ODBC in SQL + JACK MIDI
František Kučera <franta-hg@frantovo.cz>
parents:
282
diff
changeset
|
52 |
<p> |
256 | 53 |
See the <m:a href="examples">examples</m:a> and <m:a href="screenshots">screenshots</m:a> pages for details. |
151 | 54 |
</p> |
256 | 55 |
|
56 |
<p> |
|
299
dd7aeff5ef0c
fix typo: relasease → release
František Kučera <franta-hg@frantovo.cz>
parents:
297
diff
changeset
|
57 |
Please note that this is still a development release and thus the API (libraries, CLI arguments, formats) might and will change. |
329 | 58 |
Any suggestions, ideas and bug reports are welcome in our <m:a href="contact">mail box</m:a>. |
256 | 59 |
</p> |
151 | 60 |
|
61 |
<h3>Data types</h3> |
|
62 |
<ul> |
|
241 | 63 |
<li m:since="v0.8">boolean</li> |
64 |
<li m:since="v0.8">variable unsigned integer (prototype)</li> |
|
65 |
<li m:since="v0.8">string in UTF-8</li> |
|
151 | 66 |
</ul> |
67 |
<h3>Inputs</h3> |
|
68 |
<ul> |
|
256 | 69 |
<li m:since="v0.11">Recfile</li> |
241 | 70 |
<li m:since="v0.9">XML</li> |
264
d39cfc926f95
XMLTable, SQL, v0.13
František Kučera <franta-hg@frantovo.cz>
parents:
258
diff
changeset
|
71 |
<li m:since="v0.13">XMLTable</li> |
241 | 72 |
<li m:since="v0.9">CSV</li> |
73 |
<li m:since="v0.9">file system</li> |
|
74 |
<li m:since="v0.8">CLI</li> |
|
75 |
<li m:since="v0.8">fstab</li> |
|
282
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
76 |
<li m:since="v0.14">SQL script</li> |
151 | 77 |
</ul> |
78 |
<h3>Transformations</h3> |
|
79 |
<ul> |
|
264
d39cfc926f95
XMLTable, SQL, v0.13
František Kučera <franta-hg@frantovo.cz>
parents:
258
diff
changeset
|
80 |
<li m:since="v0.13">sql: filtering and transformations using the SQL language</li> |
258
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
81 |
<li m:since="v0.12">awk: filtering and transformations using the classic AWK tool and language</li> |
250 | 82 |
<li m:since="v0.10">guile: filtering and transformations defined in the Scheme language using GNU Guile</li> |
241 | 83 |
<li m:since="v0.8">grep: regular expression filter, removes unwanted records from the relation</li> |
84 |
<li m:since="v0.8">cut: regular expression attribute cutter (removes or duplicates attributes and can also DROP whole relation)</li> |
|
85 |
<li m:since="v0.8">sed: regular expression replacer</li> |
|
86 |
<li m:since="v0.8">validator: just a pass-through filter that crashes on invalid data</li> |
|
87 |
<li m:since="v0.8">python: highly experimental</li> |
|
151 | 88 |
</ul> |
89 |
<h3>Outputs</h3> |
|
90 |
<ul> |
|
256 | 91 |
<li m:since="v0.11">ASN.1 BER</li> |
92 |
<li m:since="v0.11">Recfile</li> |
|
241 | 93 |
<li m:since="v0.9">CSV</li> |
94 |
<li m:since="v0.8">tabular</li> |
|
95 |
<li m:since="v0.8">XML</li> |
|
96 |
<li m:since="v0.8">nullbyte</li> |
|
97 |
<li m:since="v0.8">GUI in Qt</li> |
|
98 |
<li m:since="v0.8">ODS (LibreOffice)</li> |
|
151 | 99 |
</ul> |
100 |
||
101 |
<p> |
|
219 | 102 |
Instalation was tested on Debian GNU/Linux 9.6. |
103 |
The process should be similar on other distributions. |
|
104 |
</p> |
|
151 | 105 |
|
282
ec02133045a3
Release v0.14 – SQL, AWK, Bash completion, GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
276
diff
changeset
|
106 |
<m:pre src="examples/release-v0.14.sh" jazyk="bash" odkaz="ano"/> |
151 | 107 |
|
219 | 108 |
<p> |
109 |
<m:name/> are modular thus you can download and install only parts you need (the libraries are needed always). |
|
110 |
Tools <code>out-gui.qt</code> and <code>tr-python</code> require additional libraries and are not built by default. |
|
111 |
</p> |
|
151 | 112 |
|
241 | 113 |
<p> |
114 |
The module <code>relpipe-in-filesystem</code> uses C++ filesystem API which is supported since GCC 8. |
|
115 |
This module can be compiled and seems usable even with GCC 6, but requires some patching (switch to the experimental API): |
|
116 |
</p> |
|
117 |
||
118 |
<m:pre jazyk="bash"><![CDATA[sed 's@#include <filesystem>@#include <experimental/filesystem>@g' -i "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/FileAttributeFinder.h "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/XattrAttributeFinder.h "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/FilesystemCommand.h "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/AttributeFinder.h |
|
119 |
sed 's@std::filesystem@std::experimental::filesystem@g' -i "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/FileAttributeFinder.h "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/XattrAttributeFinder.h "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/FilesystemCommand.h "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/AttributeFinder.h |
|
120 |
sed 's/.*PROPERTY CXX_STANDARD.*/#\0/g' -i "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/CMakeLists.txt]]></m:pre> |
|
121 |
||
250 | 122 |
<p> |
123 |
The module <code>relpipe-tr-guile</code> uses GNU Guile 2.2 but can also work with 2.0. |
|
124 |
In such case, it requires this patch: |
|
125 |
</p> |
|
126 |
||
127 |
<m:pre jazyk="bash"><![CDATA[sed 's/guile-2\.2/guile-2.0/g' -i "$RELPIPE_SRC"/relpipe-tr-guile.cpp/src/CMakeLists.txt]]></m:pre> |
|
128 |
||
87
25dec6931f18
Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents:
23
diff
changeset
|
129 |
</text> |
4
1bb39595a51c
genrování hlavní nabídky #1
František Kučera <franta-hg@frantovo.cz>
parents:
2
diff
changeset
|
130 |
|
1 | 131 |
</stránka> |