[Bio] / Sprout / SingleTableLoad.pl Repository:
ViewVC logotype

View of /Sprout/SingleTableLoad.pl

Parent Directory Parent Directory | Revision Log Revision Log

Revision 1.1 - (download) (as text) (annotate)
Wed Apr 19 17:09:00 2006 UTC (14 years, 2 months ago) by parrello
Branch: MAIN
Added to permit easy loading of individual tables from DTX files.

#!/usr/bin/perl -w

=head1 Single Table Load

This script loads one or more Sprout table from an existing DTX file.

It takes as positional parameters the table names.


use strict;
use Tracer;
use DocUtils;
use TestUtils;
use Cwd;
use Sprout;
use SFXlate;
use File::Copy;
use File::Path;

# Get the command-line options.
my ($options, @parameters) = StandardSetup(['ERDB', 'Sprout', 'DBKernel'],
                                            '<table1> <table2> ...',
# Get a Sprout object.
my $sprout = SFXlate->new_sprout_only();
# Attempt the load. Note that we have the truncate flag on to force the table
# to be rebuilt.
$sprout->LoadUpdate(1, \@parameters);
# Denote we're done.
Trace("Load complete.") if T(2);


MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3