|
0
|
1 <tool id="sqlite_merger" name="Merge SQLite" version="0.0.1">
|
|
|
2 <description>databases</description>
|
|
|
3 <requirements>
|
|
|
4 <requirement type="package" version="3.8.3">sqlite</requirement>
|
|
1
|
5 </requirements>
|
|
|
6 <version_command>
|
|
|
7 <![CDATA[
|
|
|
8 sqlite3 --version | awk '{print $1;}'
|
|
|
9 ]]>
|
|
|
10 </version_command>
|
|
0
|
11 <command>
|
|
|
12 <![CDATA[
|
|
|
13 #for $inputfile in $inputfiles:
|
|
|
14 sqlite3 $inputfile .dump >> dump;
|
|
|
15 #end for
|
|
|
16 sqlite3 $outfile < dump
|
|
|
17 ]]>
|
|
|
18 </command>
|
|
|
19 <stdio>
|
|
|
20 <exit_code range="1:" />
|
|
|
21 <exit_code range=":-1" />
|
|
|
22 <regex match="Error:" />
|
|
|
23 <regex match="Exception:" />
|
|
|
24 </stdio>
|
|
|
25 <inputs>
|
|
|
26 <repeat name="inputfiles" title="SQLite databases" min="2">
|
|
|
27 <param name="infile" type="data" format="sqlite" label="GEMINI database" />
|
|
|
28 </repeat>
|
|
|
29 </inputs>
|
|
|
30 <outputs>
|
|
|
31 <data name="outfile" format="sqlite" label="${tool.name} on ${on_string}" />
|
|
|
32 </outputs>
|
|
|
33 <tests>
|
|
|
34 <test>
|
|
|
35 </test>
|
|
|
36 </tests>
|
|
|
37 <help>
|
|
|
38
|
|
|
39 **What it does**
|
|
|
40
|
|
|
41 This tool merges several SQLite databases into one.
|
|
|
42
|
|
|
43 http://www.sqlite.org/
|
|
|
44
|
|
|
45 </help>
|
|
|
46 </tool>
|