Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

usage pod with examples

  • Loading branch information...
commit 3ffb43fca66961f2e6f3924026a445029d3054cc 1 parent b4c66bf
@jozef authored
Showing with 21 additions and 1 deletion.
  1. +21 −1 bin/sql-admin.pl
View
22 bin/sql-admin.pl
@@ -30,7 +30,7 @@
sub main { # ;
my $action = shift @ARGV;
- pod2usage('Unknown action')
+ pod2usage('Unknown action '.$action)
unless $action && exists $action_map{$action};
my $factory = SQL::Admin->new;
@@ -168,3 +168,23 @@ =head1 SYNOPSIS
sql-admin <action> --source <source driver> <source driver parameters>
--destination <destination driver> <destination driver parameters>
--output <output driver> <output driver parameters>
+
+ <action> - dump or compare
+ <* driver> - Pg or DB2
+ when connecting to the database Pg::DBI or DB2::DBI
+
+ Examples:
+ sql-admin.pl dump --source Pg::DBI \
+ '--source-dbdsn=dbi:Pg:dbname=some_name;host=localhost' \
+ --source-dbusr username \
+ --source-dbpwd password \
+ --output Pg
+
+ sql-admin.pl compare
+ --source Pg::DBI \
+ '--source-dbdsn=dbi:Pg:dbname=some_name;host=localhost' \
+ --source-dbusr username \
+ --source-dbpwd password \
+ --destination Pg \
+ --source-file create.sql \
+ --output Pg
Please sign in to comment.
Something went wrong with that request. Please try again.