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

Diff of /Sprout/ERDBLoader.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6, Mon Jan 19 21:46:21 2009 UTC revision 1.7, Thu Feb 5 06:50:12 2009 UTC
# Line 76  Line 76 
76    
77  If specified, turns on tracing of SQL activity.  If specified, turns on tracing of SQL activity.
78    
79    =item clear
80    
81    If specified, existing load files will be recreated from sections if the sections
82    are present.
83    
84  =item background  =item background
85    
86  Save the standard and error output to files. The files will be created  Save the standard and error output to files. The files will be created
# Line 120  Line 125 
125  # Get the command-line options and parameters.  # Get the command-line options and parameters.
126  my ($options, @parameters) = StandardSetup([qw(ERDBLoadGroup ERDB Stats) ],  my ($options, @parameters) = StandardSetup([qw(ERDBLoadGroup ERDB Stats) ],
127                                             {                                             {
128                                                  clear => ["", "overwrite existing load files if sections are present"],
129                                                sanityCheck => ["", "don't load, trace contents of first N load file records instead"],                                                sanityCheck => ["", "don't load, trace contents of first N load file records instead"],
130                                                trace => ["2", "tracing level"],                                                trace => ["2", "tracing level"],
131                                                keepSections => ["", "if specified, section files will not be deleted after being collated"],                                                keepSections => ["", "if specified, section files will not be deleted after being collated"],
# Line 167  Line 173 
173              # Get the data file name.              # Get the data file name.
174              my $dataFile = ERDBGenerate::CreateFileName($table, undef, 'data', $directory);              my $dataFile = ERDBGenerate::CreateFileName($table, undef, 'data', $directory);
175              # Do we have it?              # Do we have it?
176              if (-f $dataFile) {              if (-f $dataFile && ! $options->{clear}) {
177                  # Yes. This is good news.                  # Yes. This is good news.
178                  $stats->Add('tables-found' => 1);                  $stats->Add('tables-found' => 1);
179                  Trace("Table file found for $table.") if T(3);                  Trace("Table file found for $table.") if T(3);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3