Mercurial > repos > iuc > sqlite_to_tabular
comparison sqlite_to_tabular.xml @ 0:859064f07be4 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/query_tabular commit 74915fc9cee746bbce1c4b507e13231259de177d
author | iuc |
---|---|
date | Tue, 18 Jul 2017 09:07:26 -0400 |
parents | |
children | c1b700bc0150 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:859064f07be4 |
---|---|
1 <?xml version="1.0"?> | |
2 <tool id="sqlite_to_tabular" name="SQLite to tabular" version="1.0.0"> | |
3 <description>for SQL query</description> | |
4 | |
5 <macros> | |
6 <import>macros.xml</import> | |
7 </macros> | |
8 | |
9 <command detect_errors="exit_code"><![CDATA[ | |
10 python '$__tool_directory__/sqlite_to_tabular.py' | |
11 --sqlitedb='$sqlitedb' | |
12 --query_file='$query_file' | |
13 $no_header | |
14 --output='$query_results' | |
15 ]]></command> | |
16 <configfiles> | |
17 <configfile name="query_file"> | |
18 $sqlquery | |
19 </configfile> | |
20 </configfiles> | |
21 <inputs> | |
22 <param name="sqlitedb" type="data" format="sqlite" label="SQLite Database"/> | |
23 <param name="sqlquery" type="text" area="True" size="120x20" label="SQL query"> | |
24 <validator type="regex">(?ims)^\s*SELECT\s.*\sFROM\s.*$</validator> | |
25 <sanitizer sanitize="False"/> | |
26 </param> | |
27 <param name="no_header" type="boolean" truevalue="-n" falsevalue="" checked="False" label="Omit column headers"/> | |
28 </inputs> | |
29 <outputs> | |
30 <data name="query_results" format="tabular" /> | |
31 </outputs> | |
32 <tests> | |
33 <test> | |
34 <param name="sqlitedb" ftype="sqlite" value="testdb.sqlite" /> | |
35 <param name="sqlquery" value="SELECT first_name, last_name, age FROM contacts WHERE first_name = 'Sam'" /> | |
36 <output name="query_results"> | |
37 <assert_contents> | |
38 <has_text text="Smith" /> | |
39 <not_has_text text="Doe" /> | |
40 </assert_contents> | |
41 </output> | |
42 </test> | |
43 </tests> | |
44 <help><![CDATA[ | |
45 ================= | |
46 SQLite to Tabular | |
47 ================= | |
48 | |
49 **Inputs** | |
50 | |
51 An existing SQLite_ data base. | |
52 | |
53 | |
54 **Outputs** | |
55 | |
56 The results of a SQL query are output to the history as a tabular file. | |
57 | |
58 | |
59 | |
60 @QUERY_HELP@ | |
61 | |
62 ]]></help> | |
63 </tool> |