comparison query_tabular.xml @ 1:24f0911f75ee

Uploaded
author jjohnson
date Sat, 03 Oct 2015 09:23:08 -0400
parents 763c4f968dc6
children ffa5e34a55c1
comparison
equal deleted inserted replaced
0:763c4f968dc6 1:24f0911f75ee
26 #set $col_names = '' 26 #set $col_names = ''
27 #end if 27 #end if
28 -t ${tbl.table}=${tname}${$col_names} 28 -t ${tbl.table}=${tname}${$col_names}
29 #end for 29 #end for
30 #if $query: 30 #if $query:
31 -q "$query" 31 -q "$query"
32 $no_header
32 -o $output 33 -o $output
33 #end if 34 #end if
34 ]]></command> 35 ]]></command>
35 <inputs> 36 <inputs>
36 <param name="workdb" type="hidden" value="workdb.sqlite" label=""/> 37 <param name="workdb" type="hidden" value="workdb.sqlite" label=""/>
51 <param name="query" type="text" area="true" size="10x80" value="" optional="true" label="SQL Query"> 52 <param name="query" type="text" area="true" size="10x80" value="" optional="true" label="SQL Query">
52 <help>By default, tables will be named: t1,t2,...,tn</help> 53 <help>By default, tables will be named: t1,t2,...,tn</help>
53 <sanitizer sanitize="False"/> 54 <sanitizer sanitize="False"/>
54 <validator type="regex" message="">^(?i)\s*select\s+.*\s+from\s+.*$</validator> 55 <validator type="regex" message="">^(?i)\s*select\s+.*\s+from\s+.*$</validator>
55 </param> 56 </param>
57 <param name="no_header" type="boolean" truevalue="-n" falsevalue="" checked="False" label="Omit column headers"/>
58
56 <param name="save_db" type="boolean" truevalue="yes" falsevalue="no" checked="false" label="Save the sqlite database"/> 59 <param name="save_db" type="boolean" truevalue="yes" falsevalue="no" checked="false" label="Save the sqlite database"/>
57 </inputs> 60 </inputs>
58 <outputs> 61 <outputs>
59 <data format="sqlite" name="sqlitedb" label="sqlite"> 62 <data format="sqlite" name="sqlitedb" label="sqlite">
60 <filter>save_db or not (query and len(query) > 0)</filter> 63 <filter>save_db or not (query and len(query) > 0)</filter>