8 |
8 |
9 <text xmlns="http://www.w3.org/1999/xhtml"> |
9 <text xmlns="http://www.w3.org/1999/xhtml"> |
10 |
10 |
11 <p> |
11 <p> |
12 Both the <code>relpipe-tr-sql</code> and <code>relpipe-in-sql</code> |
12 Both the <code>relpipe-tr-sql</code> and <code>relpipe-in-sql</code> |
13 support the option <code>--file</code> and can store data in a file instead of just in-memory. |
13 support options <code>--data-source-name</code> and <code>--data-source-string</code> |
14 Primary purpose of this option is to offload to HDD and be able to process more data whithout consuming too much RAM. |
14 that can be used for connecting to a different database than the in-memory SQLite one. |
15 So such file is usually a temporary one and is deleted immediately after the transformation. |
15 This is useful if we want to offload to HDD and be able to process more data whithout consuming too much RAM. |
16 But we can also direct it to an existing file and append new relations to it. |
16 Or if we want to access an existing database instead of just transforming records from the STDIN to STDOUT. |
17 Or we can create a new file and do not delete it – using the <code>--file-keep true</code> option. |
17 These options allow connecting to any DBMS. |
18 </p> |
18 </p> |
19 |
19 |
20 <p> |
20 <p> |
21 Thus we can use the <code>relpipe-in-sql</code> as a database client to access existing SQLite files and SELECT from them (and then convert the results to any supported format). |
21 Thus we can use the <code>relpipe-in-sql</code> as a database client to access existing SQLite files and SELECT from them (and then convert the results to any supported format). |
22 An we can use the <code>relpipe-tr-sql</code> as an output filter which converts relational data to a SQLite file that can be queried later. |
22 And we can use the <code>relpipe-tr-sql</code> as an output filter which converts relational data to a SQLite file that can be queried later. |
23 </p> |
23 </p> |
24 |
24 |
25 <p> |
25 <p> |
26 SQLite is a popular format used by many applications to store structured data. |
26 SQLite is a popular format used by many applications to store structured data. |
27 Version control systems (VCS) like <a href="https://www.monotone.ca/">Monotone</a> or <a href="https://fossil-scm.org/">Fossil</a> |
27 Version control systems (VCS) like <a href="https://www.monotone.ca/">Monotone</a> or <a href="https://fossil-scm.org/">Fossil</a> |