O'Reilly logo

Catalyst 5.8 by Antano Solar John

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding the interface to the database

The exact files generated (inside lib/AddressBook) are:

  • Model/AddressDB.pm: The actual Model that Catalyst uses. It's simply a stub that points DBIx:: Class at the Schema/AddressDB.pm schema. This file also contains the database details like the type of database, driver used, database name, and any username and password, as required.
  • Schema/AddressDB.pm: This is the schema that the Model points to. This is another stub that automatically loads everything in the subdirectory /AddressDB.
  • Schema/AddressDB/Result/People.pm and Schema/AddressDB/Result/Addresses.pm: This is where the real schema data is stored. Each of these files will declare a table name (so that Perl knows that People.pm is the people table ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required