Changeset 15725 for gsdl/trunk/perllib/dbutil.pm
- Timestamp:
- 2008-05-27T15:02:16+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/dbutil.pm
r15722 r15725 31 31 sub get_infodb_file_path 32 32 { 33 my $infodb_type = shift(@_); 33 34 my $collection_name = shift(@_); 34 35 my $infodb_directory_path = shift(@_); 35 36 37 if ($infodb_type eq "sqlite") 38 { 39 return &get_infodb_file_path_sqlite($collection_name, $infodb_directory_path); 40 } 41 42 # Use GDBM if the infodb type is empty or not one of the values above 36 43 return &get_infodb_file_path_gdbm($collection_name, $infodb_directory_path); 37 44 } … … 40 47 sub open_infodb_write_handle 41 48 { 42 my $infodb_file_path = shift(@_); 43 49 my $infodb_type = shift(@_); 50 my $infodb_file_path = shift(@_); 51 52 if ($infodb_type eq "sqlite") 53 { 54 return &open_infodb_write_handle_sqlite($infodb_file_path); 55 } 56 57 # Use GDBM if the infodb type is empty or not one of the values above 44 58 return &open_infodb_write_handle_gdbm($infodb_file_path); 45 59 } … … 48 62 sub read_infodb_file 49 63 { 64 my $infodb_type = shift(@_); 50 65 my $infodb_file_path = shift(@_); 51 66 my $infodb_map = shift(@_); … … 57 72 sub write_infodb_entry 58 73 { 74 my $infodb_type = shift(@_); 59 75 my $infodb_handle = shift(@_); 60 76 my $infodb_key = shift(@_); 61 77 my $infodb_map = shift(@_); 62 78 63 &write_infodb_entry_gdbm($infodb_handle, $infodb_key, $infodb_map); 79 if ($infodb_type eq "sqlite") 80 { 81 return &write_infodb_entry_sqlite($infodb_handle, $infodb_key, $infodb_map); 82 } 83 84 # Use GDBM if the infodb type is empty or not one of the values above 85 return &write_infodb_entry_gdbm($infodb_handle, $infodb_key, $infodb_map); 64 86 } 65 87
Note:
See TracChangeset
for help on using the changeset viewer.