diff pg-dump.xml @ 0:68988da52803 draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
author bgruening
date Wed, 24 Apr 2019 06:10:53 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pg-dump.xml	Wed Apr 24 06:10:53 2019 -0400
@@ -0,0 +1,41 @@
+<tool id="pg_dump" name="Dump" version="@PG_VERSION@">
+    <description>postgres database</description>
+    <macros>
+        <import>macros.xml</import>
+    </macros>
+    <expand macro="requirements" />
+    <command detect_errors="aggressive"><![CDATA[
+        @UNTAR_INFILE@ &&
+        @PG_START@ &&
+        pg_dump "\$(pglite url -d ./postgresql)" $no_owner -f '$outfile' &&
+        @PG_STOP@ 
+    ]]>
+    </command>
+    <inputs>
+        <param name="infile" type="data" format="postgresql" label="Input database" />
+        <param name="no_owner" type="boolean" truevalue="--no-owner" falsevalue="" value="--no-owner"
+            label="Do not emit owner statements"
+            help="Do not output commands to set ownership of objects to match the original database. This is turned on by default because it is expected that the pg_dump tool will be used when exporting the data for use in a system external to Galaxy. Thus the authorization statements are likely to be different so we remove this."/>
+    </inputs>
+    <outputs>
+        <data format="txt" name="outfile" />
+    </outputs>
+    <tests>
+        <test>
+            <param value="pg_import_result1.pg.tar.bz2" name="infile"/>
+            <output file="init-galaxy-db.sql.in" name="outfile" ftype="txt" />
+        </test>
+    </tests>
+    <help>
+<![CDATA[
+pg_dump
+-------
+
+This tool produces a SQL dump of the database file, compatible with import into external postgres databases.
+
+@HELP_FOOTER@
+
+]]>
+    </help>
+    <expand macro="citations" />
+</tool>