Sets up a Class::DBI connection and basic variables expected by any Class::DBI library
Version: 0.15Fry::Lib::CDBI::Load is a Perl module that sets up a Class::DBI connection and basic variables expected by any Class::DBI library.
License: Perl Artistic License
Operating System: Linux
Homepage: search.cpan.org
Developed by:
This module sets up a Class::DBI connection either using Class::DBI::Loader or with an explicit &set_db call. When the flag CDBI_Loader is set, this class sets up via Class::DBI::Loader. Both paths have the following in common:
The class variable $cdbi_class allows you to specify your own subclass.
My::CDBI subclasses $cdbi_class and is the calling class for Class::DBI methods.
Since Class::DBI doesn't currently return columns in their table's order, the column orders are fetched every time a new table is defined unless the flag get_columns isn't set. My::CDBI contains the methods for getting the correct column orders for three databases: postgres,mysql and sqlite. If you'd like your database to have correct column_orders, send me an email with the method to do so.
My::CDBI also contains &search_regex which searches with a regex operator (only for mysql and postgresql).