[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.7, Thu Feb 5 06:50:12 2009 UTC revision 1.8, Mon Mar 2 22:16:27 2009 UTC
# Line 118  Line 118 
118  DBD during load, so that access to the database by other processes is not  DBD during load, so that access to the database by other processes is not
119  compromised.  compromised.
120    
121    =item loadDirectory
122    
123    Directoty containing the load files. This option allows you to request that
124    load files from another version of the NMPDR be used, which is useful when
125    creating a new NMPDR: we can yank in the data from the previous database while
126    waiting for the new load files to be generated.
127    
128  =back  =back
129    
130  =cut  =cut
# Line 131  Line 138 
138                                                keepSections => ["", "if specified, section files will not be deleted after being collated"],                                                keepSections => ["", "if specified, section files will not be deleted after being collated"],
139                                                phone => ["", "phone number (international format) to call when load finishes"],                                                phone => ["", "phone number (international format) to call when load finishes"],
140                                                DBD => ["", "if specified, the name of a DBD file in the FIG directory"],                                                DBD => ["", "if specified, the name of a DBD file in the FIG directory"],
141                                                  loadDirectory => ["", "if specified, an alternate directory containing the load files"],
142                                             },                                             },
143                                             "<database> <group1> <group2> ...",                                             "<database> <group1> <group2> ...",
144                                             @ARGV);                                             @ARGV);
# Line 148  Line 156 
156      my @realGroups = ERDBLoadGroup::ComputeGroups($erdb, \@groups);      my @realGroups = ERDBLoadGroup::ComputeGroups($erdb, \@groups);
157      # Get the source object and load directory for this database.      # Get the source object and load directory for this database.
158      my $source = $erdb->GetSourceObject();      my $source = $erdb->GetSourceObject();
159      my $directory = $erdb->LoadDirectory();  
160        my $directory = $options->{loadDirectory} || $erdb->LoadDirectory();
161      # Get the list of sections.      # Get the list of sections.
162      my @sectionList = $erdb->SectionList($source);      my @sectionList = $erdb->SectionList($source);
163      # Create a statistics object to track our progress.      # Create a statistics object to track our progress.
# Line 304  Line 313 
313      }      }
314  }  }
315    
316    =head2 Internal Methods
317    
318  =head3 CheckLoadFile  =head3 CheckLoadFile
319    
320      CheckLoadFile($erdb, $table, $fileName, $count);      CheckLoadFile($erdb, $table, $fileName, $count);

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3