Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    DBIx::Class::Loader 0.21

    Download button

    No screenshots available
    Downloads: 238  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Brandon L Black | More programs
    Perl Artistic License / FREE
    January 20th, 2010, 04:08 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    DBIx::Class::Loader description

    Dynamic definition of DBIx::Class sub classes

    DBIx::Class::Loader is a Perl module deprecated in favor of DBIx::Class::Schema::Loader for use with DBIx::Class versions 0.05 and higher. It continues to function as well as it ever did, even for recent DBIx::Class releases, and will be maintained for some time to counter bugs, but it doesn't use the now-preferred DBIx::Class::Schema way of doing things, and tends to promote bad DBIx::Class usage habits.

    SYNOPSIS

     use DBIx::Class::Loader;

     my $loader = DBIx::Class::Loader->new(
     dsn => "dbi:mysql:dbname",
     user => "root",
     password => "",
     namespace => "Data",
     additional_classes => [qw/DBIx::Class::Foo/],
     additional_base_classes => [qw/My::Stuff/],
     left_base_classes => [qw/DBIx::Class::Bar/],
     constraint => '^foo.*',
     relationships => 1,
     options => { AutoCommit => 1 },
     inflect => { child => 'children' },
     debug => 1,
     );
     my $class = $loader->find_class('film'); # $class => Data::Film
     my $obj = $class->find(1);


    use with mod_perl

    in your startup.pl

     # load all tables
     use DBIx::Class::Loader;
     my $loader = DBIx::Class::Loader->new(
     dsn => "dbi:mysql:dbname",
     user => "root",
     password => "",
     namespace => "Data",
     );


    in your web application.

     use strict;

     # you can use Data::Film directly
     my $film = Data::Film->retrieve($id);



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    DBIx::Class loader | dynamic definition | Perl module | DBIx::Class | loader | definition

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM