The exact files generated (inside lib/AddressBook
) are:
Model/AddressDB.pm
: The actual Model that Catalyst uses. It's simply a stub that pointsDBIx:: Class
at theSchema/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
andSchema/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 thatPeople.pm
is thepeople
table in the database) and the column definitions. Relationships between tables are added here, as are any specific access methods you'd like to add. Accessing a column's data by name is available by default, so most people won't need to add their own...