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