Changeset 21547
- Timestamp:
- 2010-01-20T17:23:51+13:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/dbutil.pm
r21546 r21547 178 178 179 179 180 sub read_infodb_entry 181 { 182 my $infodb_type = shift(@_); 183 my $infodb_file_path = shift(@_); 184 my $infodb_key = shift(@_); 185 186 # !! TEMPORARY: Slow and naive implementation that just reads the entire file and picks out the one value 187 # !! This will soon be replaced with database-specific versions that will use dbget etc. 188 my $infodb_map = {}; 189 &read_infodb_file($infodb_type, $infodb_file_path, $infodb_map); 190 return $infodb_map->{$infodb_key}; 191 } 192 193 180 194 sub write_infodb_entry 181 195 {
Note:
See TracChangeset
for help on using the changeset viewer.