Add comments to affected storage modules
authorJason Stephenson <jason@sigio.com>
Sun, 7 Jul 2019 11:02:54 +0000 (07:02 -0400)
committerJason Stephenson <jason@sigio.com>
Sun, 7 Jul 2019 11:02:54 +0000 (07:02 -0400)
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/CDBI.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg.pm

index 0d1a158..ac57794 100644 (file)
@@ -6,6 +6,10 @@ BEGIN {
 use base qw/Class::DBI/;
 use Class::DBI::AbstractSearch;
 
+# The following modules add, or use, subroutines in modules that are
+# not available when this module is compiled.  We therefore "require"
+# these modules rather than "use" them.  Everything is available at
+# run time.
 require OpenILS::Application::Storage::CDBI::actor;
 require OpenILS::Application::Storage::CDBI::action;
 require OpenILS::Application::Storage::CDBI::booking;
index f511536..6105d7a 100644 (file)
   # OpenILS::Application::Storage.
   #-------------------------------------------------------------------------------
     package OpenILS::Application::Storage::Driver::Pg;
+    # The following modules add, or use, subroutines in modules that
+    # are not available when this module is compiled.  We therefore
+    # "require" these modules rather than "use" them.  Everything is
+    # available at run time.
     require OpenILS::Application::Storage::Driver::Pg::cdbi;
     require OpenILS::Application::Storage::Driver::Pg::fts;
     require OpenILS::Application::Storage::Driver::Pg::storage;
     require OpenILS::Application::Storage::Driver::Pg::dbi;
+
     use UNIVERSAL::require; 
     BEGIN {                 
         'Class::DBI::Frozen::301'->use or 'Class::DBI'->use or die $@;