use base qw/Class::DBI/;
use Class::DBI::AbstractSearch;
-use OpenILS::Application::Storage::CDBI::actor;
-use OpenILS::Application::Storage::CDBI::action;
-use OpenILS::Application::Storage::CDBI::booking;
-use OpenILS::Application::Storage::CDBI::asset;
-use OpenILS::Application::Storage::CDBI::serial;
-use OpenILS::Application::Storage::CDBI::authority;
-use OpenILS::Application::Storage::CDBI::biblio;
-use OpenILS::Application::Storage::CDBI::config;
-use OpenILS::Application::Storage::CDBI::metabib;
-use OpenILS::Application::Storage::CDBI::money;
-use OpenILS::Application::Storage::CDBI::permission;
-use OpenILS::Application::Storage::CDBI::container;
+# 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;
+require OpenILS::Application::Storage::CDBI::asset;
+require OpenILS::Application::Storage::CDBI::serial;
+require OpenILS::Application::Storage::CDBI::authority;
+require OpenILS::Application::Storage::CDBI::biblio;
+require OpenILS::Application::Storage::CDBI::config;
+require OpenILS::Application::Storage::CDBI::metabib;
+require OpenILS::Application::Storage::CDBI::money;
+require OpenILS::Application::Storage::CDBI::permission;
+require OpenILS::Application::Storage::CDBI::container;
use OpenSRF::Utils::JSON;
use OpenSRF::Utils::Logger qw(:level);
# OpenILS::Application::Storage.
#-------------------------------------------------------------------------------
package OpenILS::Application::Storage::Driver::Pg;
- use OpenILS::Application::Storage::Driver::Pg::cdbi;
- use OpenILS::Application::Storage::Driver::Pg::fts;
- use OpenILS::Application::Storage::Driver::Pg::storage;
- use OpenILS::Application::Storage::Driver::Pg::dbi;
+ # 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 $@;
#!perl -T
-use Test::More tests => 3;
+use Test::More tests => 6;
+use_ok( 'OpenILS::Application::Storage::Driver::Pg' );
use_ok( 'OpenILS::Application::Storage::Driver::Pg::cdbi' );
use_ok( 'OpenILS::Application::Storage::Driver::Pg::fts' );
+use_ok( 'OpenILS::Application::Storage::Driver::Pg::storage' );
+use_ok( 'OpenILS::Application::Storage::Driver::Pg::dbi' );
use_ok( 'OpenILS::Application::Storage::Driver::Pg::QueryParser' );
-
-# These modules are not meant to be loaded as a normal Perl module
-# use_ok( 'OpenILS::Application::Storage::Driver::Pg' );
-# use_ok( 'OpenILS::Application::Storage::Driver::Pg::dbi' );
-# use_ok( 'OpenILS::Application::Storage::Driver::Pg::storage' );