Mercurial > repos > bgruening > pg_import
diff pg-import.xml @ 0:2c43bac3579f draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tools/pgtools commit ab93c4c70fa487e55a24863a7786e102e7d92272
author | bgruening |
---|---|
date | Wed, 24 Apr 2019 06:11:25 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pg-import.xml Wed Apr 24 06:11:25 2019 -0400 @@ -0,0 +1,36 @@ +<tool id="pg_import" name="Postgresql" version="@PG_VERSION@"> + <description>import sql dump</description> + <macros> + <import>macros.xml</import> + </macros> + <expand macro="requirements" /> + <command detect_errors="aggressive"><![CDATA[ + @PG_SETUP@ && + ls -l ./postgresql && + @PSQL@ -f '$infile' -L logfile.log && + @PG_STOP@ && + @ARCHIVE_DATABASE@ && + cat logfile.log + ]]> + </command> + <inputs> + <param format="txt" name="infile" type="data" label="Input SQL dump" /> + </inputs> + <outputs> + <data format="postgresql" name="outfile" from_work_dir="postgresql_out.tar.bz2" /> + </outputs> + <tests> + <test> + <param name="infile" value="init-galaxy-db.sql.in" ftype="txt" /> + <output file="pg_import_result1.pg.tar.bz2" name="outfile" ftype="postgresql" compare="sim_size" delta="200000" /> + </test> + </tests> + <help> +<![CDATA[ + +@HELP_FOOTER@ + +]]> + </help> + <expand macro="citations" /> +</tool>