X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=doc%2FAbout.pod;h=87ef1958fd74ee92b5b09d987bdef7cbb9ada6a2;hb=0a501c549606893f90ee9787a13a8a8de1017355;hp=60c3ab7ec772ceede1cd154a4d33cfafcbd51f3e;hpb=874ed7ac5abb5f23093620925134ffccda52b840;p=maypole.git diff --git a/doc/About.pod b/doc/About.pod index 60c3ab7..87ef195 100644 --- a/doc/About.pod +++ b/doc/About.pod @@ -5,8 +5,155 @@ =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