Command-line wrapper for SQL::Translator::Shell.
Darren Chamberlain [Fri, 3 Oct 2003 21:15:55 +0000 (21:15 +0000)]
bin/sqltsh [new file with mode: 0644]

diff --git a/bin/sqltsh b/bin/sqltsh
new file mode 100644 (file)
index 0000000..158af38
--- /dev/null
@@ -0,0 +1,13 @@
+#!/usr/bin/perl
+
+use strict;
+
+use Getopt::Long;
+use SQL::Translator::Shell;
+
+my %options = (HISTFILE => glob("~/.sqltsh_history"));
+GetOptions('H=s' => \$options{HISTFILE});
+
+my $sqltsh = SQL::Translator::Shell->new(%options);
+
+$sqltsh->run();