relpipe-data/examples.xml
branchv_0
changeset 196 8dd5b7ecb736
parent 195 65138c5d5a7c
child 198 48a3c1c8c411
equal deleted inserted replaced
195:65138c5d5a7c 196:8dd5b7ecb736
    51 		<p>
    51 		<p>
    52 			The syntax is simple as we see above. We specify the name of the relation, number of attributes,
    52 			The syntax is simple as we see above. We specify the name of the relation, number of attributes,
    53 			and then their definitions (names and types),
    53 			and then their definitions (names and types),
    54 			followed by the data.
    54 			followed by the data.
    55 		</p>
    55 		</p>
       
    56 
       
    57 		<p>
       
    58 			A single stream may contain multiple relations:
       
    59 		</p>		
       
    60 		
       
    61 		<m:pre jazyk="bash"><![CDATA[(relpipe-in-cli generate a 1 x string hello; \
       
    62  relpipe-in-cli generate b 1 y string world) \
       
    63 	| relpipe-out-tabular]]></m:pre>
       
    64 			
       
    65 		<p>
       
    66 			Thus we can combine various commands or files and pass the result to a single relational output filter (<code>relpipe-out-tabular</code> in this case) and get:
       
    67 		</p>
       
    68 		
       
    69 		<pre><![CDATA[a:
       
    70  ╭────────────╮
       
    71  │ x (string) │
       
    72  ├────────────┤
       
    73  │ hello      │
       
    74  ╰────────────╯
       
    75 Record count: 1
       
    76 b:
       
    77  ╭────────────╮
       
    78  │ y (string) │
       
    79  ├────────────┤
       
    80  │ world      │
       
    81  ╰────────────╯
       
    82 Record count: 1]]></pre>
    56 		
    83 		
    57 		<h3>relpipe-in-cli: STDIN</h3>
    84 		<h3>relpipe-in-cli: STDIN</h3>
    58 		
    85 		
    59 		<p>
    86 		<p>
    60 			The number of CLI arguments is limited and their are passed at once to the process.
    87 			The number of CLI arguments is limited and their are passed at once to the process.