Handel::Manual::Schema - An overview of the default database schema.
The default schemas in Handel are really just DBIx::Class::Schema classes with some syntactic sugar added to connect to get configuration information from Handel::ConfigReader. The whole point of using DBIx::Class schemas is that fact that you can reuse any existing schemas you have lying around for other purposes. DBIx::Class offers an amazing amount of flexibility that allows Handel to mix and match most schemas for use inside of Handel, even allowing for the changing of fields, components, and other things on the fly.
connect
An attempt is made to keep the default Handel schema restricted to only those fields that were the most common, or necessary for almost every cart/order process.
Handel::Cart::Schema is a subclass of DBIx::Class::Schema that takes care of preloading Handel::Schema::DBIC::Cart and Handel::Schema::DBIC::Cart::Item for you.
Handel::Schema::Cart is a schema class for the main cart table that holds basic information about each cart like its name, description and the shopper id it belongs to.
Handel::Schema::Cart::Item is a schema class for the table that holds the contents, or 'items' for each cart in the carts table above. This includes fields like sku, quantity and price.
Handel::Order::Schema is a subclass of DBIx::Class::Schema that takes care of preloading Handel::Schema::DBIC::Order and Handel::Schema::DBIC::Order::Item for you.
Handel::Schema::Order is a schema class for the main order table that holds basic information about each order like the billing and shipping information, the order totals, etc.
Handel::Schema::Order::Item is a schema class for the table that holds the contents, or 'items' for each order in the carts table above. This includes fields like sku, quantity and price.
Christopher H. Laco CPAN ID: CLACO claco@chrislaco.com http://today.icantfocus.com/blog/
To install Handel, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Handel
CPAN shell
perl -MCPAN -e shell install Handel
For more information on module installation, please visit the detailed CPAN module installation guide.