X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=doc%2FAbout.pod;h=b5cf3e7a2774f89ffb36875eef06f2ba0ae9c032;hb=2c2a72adcc01c1260b410103fa6bab06623f04be;hp=60c3ab7ec772ceede1cd154a4d33cfafcbd51f3e;hpb=1075bf1029dc2fddd8c9432a295bf2ad6ec3965c;p=maypole.git diff --git a/doc/About.pod b/doc/About.pod index 60c3ab7..b5cf3e7 100644 --- a/doc/About.pod +++ b/doc/About.pod @@ -5,8 +5,156 @@ =head2 What is Maypole? +=head2 The Beer Database example + +Throughout this manual, we're going to be referring back to a particular +application so that we can give concrete examples for the concepts we're +talking about. We could say "C returns a list of +accessors which can be called to return a list of objects in a has-a +relationship to the original", or we could say "if we call +C on while viewing C, it returns C, +because we can call C on a C object to get a list of +that berwery's beers." + +Because Maypole is all about beer. If you look carefully, you can +probably see men playing cricket on the village green. The first +ever Maypole application was written to help me keep track of the many +different ales available in my area - their styles, their tastes, their +breweries, prices and so on. Then the more I thought about it, the more +I thought it was a particularly good data model for demonstrating +different kinds of database relationships. + +We have a C table, which has several Cs. We'll call this +a has-many relationship. The beers each have a C