[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.9, Mon Mar 23 19:34:35 2009 UTC
# Line 115  Line 115 
115    
116  Name of the DBD file. If specified, the DBD must be in the main FIG directory  Name of the DBD file. If specified, the DBD must be in the main FIG directory
117  (specified in C<$FIG_Config::fig>). This option allows the use of an alternate  (specified in C<$FIG_Config::fig>). This option allows the use of an alternate
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();      my $directory = $options->{loadDirectory} || $erdb->LoadDirectory();
160      # Get the list of sections.      # Get the list of sections.
161      my @sectionList = $erdb->SectionList($source);      my @sectionList = $erdb->SectionList($source);
162      # Create a statistics object to track our progress.      # Create a statistics object to track our progress.
# Line 304  Line 312 
312      }      }
313  }  }
314    
315    =head2 Internal Methods
316    
317  =head3 CheckLoadFile  =head3 CheckLoadFile
318    
319      CheckLoadFile($erdb, $table, $fileName, $count);      CheckLoadFile($erdb, $table, $fileName, $count);

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3