| Line | |
|---|
| 1 | BEGIN {
|
|---|
| 2 | use File::Basename;
|
|---|
| 3 | my $THISDIR = dirname $0;
|
|---|
| 4 | unshift @INC, $THISDIR;
|
|---|
| 5 | require "testp2pt.pl";
|
|---|
| 6 | import TestPodIncPlainText;
|
|---|
| 7 | }
|
|---|
| 8 |
|
|---|
| 9 | my %options = map { $_ => 1 } @ARGV; ## convert cmdline to options-hash
|
|---|
| 10 | my $passed = testpodplaintext \%options, $0;
|
|---|
| 11 | exit( ($passed == 1) ? 0 : -1 ) unless $ENV{HARNESS_ACTIVE};
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 | __END__
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 | ==head1 NAME
|
|---|
| 18 | B<rdb2pg> - insert an rdb table into a PostgreSQL database
|
|---|
| 19 |
|
|---|
| 20 | ==head1 SYNOPSIS
|
|---|
| 21 | B<rdb2pg> [I<param>=I<value> ...]
|
|---|
| 22 |
|
|---|
| 23 | ==head1 PARAMETERS
|
|---|
| 24 | B<rdb2pg> uses an IRAF-compatible parameter interface.
|
|---|
| 25 | A template parameter file is in F</proj/axaf/simul/lib/uparm/rdb2pg.par>.
|
|---|
| 26 |
|
|---|
| 27 | ==over 4
|
|---|
| 28 | ==item B<input> I<file>
|
|---|
| 29 | The B<RDB> file to insert into the database. If the given name
|
|---|
| 30 | is the string C<stdin>, it reads from the UNIX standard input stream.
|
|---|
| 31 |
|
|---|
| 32 | ==back
|
|---|
| 33 |
|
|---|
| 34 | ==head1 DESCRIPTION
|
|---|
| 35 | B<rdb2pg> will enter the data from an B<RDB> database into a
|
|---|
| 36 | PostgreSQL database table, optionally creating the database and the
|
|---|
| 37 | table if they do not exist. It automatically determines the
|
|---|
| 38 | PostgreSQL data type from the column definition in the B<RDB> file,
|
|---|
| 39 | but may be overriden via a series of definition files or directly
|
|---|
| 40 | via one of its parameters.
|
|---|
| 41 |
|
|---|
| 42 | The target database and table are specified by the C<db> and C<table>
|
|---|
| 43 | parameters. If they do not exist, and the C<createdb> parameter is
|
|---|
| 44 | set, they will be created. Table field definitions are determined
|
|---|
| 45 | in the following order:
|
|---|
| 46 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.