comparison pg-query.xml @ 0:fa1a61331039 draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
author bgruening
date Wed, 24 Apr 2019 06:12:05 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:fa1a61331039
1 <tool id="pg_query" name="Query" version="@PG_VERSION@">
2 <description>postgres database</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <command detect_errors="aggressive"><![CDATA[
8 @UNTAR_INFILE@ &&
9 @PG_START@ &&
10 ##ls -l ./postgresql &&
11 a=" with CSV HEADER DELIMITER ' ';" &&
12 echo "COPY ($query) TO STDOUT"\$a | @PSQL@ -L logfile.log > '$outfile' &&
13 @PG_STOP@
14 &&
15 cat logfile.log
16 ]]>
17 </command>
18 <inputs>
19 <param name="infile" type="data" format="postgresql" label="Input database" />
20 <param name="query" type="text" area="True" size="5x50" label="The query to be issued to the database">
21 <sanitizer invalid_char="">
22 <valid initial="string.printable">
23 <remove value="&apos;" />
24 </valid>
25 <mapping initial="none">
26 <add source="&apos;" target="&apos;&quot;&apos;&quot;&apos;" />
27 </mapping>
28 </sanitizer>
29 <validator type="expression" message="Query cannot be empty">value.strip()</validator>
30 </param>
31 </inputs>
32 <outputs>
33 <data format="txt" name="outfile" />
34 </outputs>
35 <tests>
36 <test>
37 <param name="infile" value="pg_import_result1.pg.tar.bz2" ftype="postgresql" />
38 <param name="query" value="select version from migrate_version" />
39 <output file="pg_query_result1.txt" name="outfile" />
40 </test>
41 <test>
42 <param name="infile" value="pg_import_result1.pg.tar.bz2" ftype="postgresql" />
43 <param name="query" value="select * from galaxy_user" />
44 <output file="pg_query_result2.txt" name="outfile" />
45 </test>
46 </tests>
47 <help>
48 <![CDATA[
49
50 @HELP_FOOTER@
51
52 ]]>
53 </help>
54 <expand macro="citations" />
55 </tool>