From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Stefan Schwarzer <stefan(dot)schwarzer(at)grid(dot)unep(dot)ch> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Data Model - Linking to PHP Code - Literature |
Date: | 2007-09-13 15:11:22 |
Message-ID: | 46E9531A.7090608@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Stefan Schwarzer wrote:
>
>> Of course you should really have a data model that knows what it wants
>> to sort by and constructs the query appropriately. The table-drawing
>> code can then ask the data-model for heading-names and sort-order
>> details. It's more work up-front, but you only have to do it once and
>> then you can generate new table layouts very easily.
>
> Can you recommend some literature for this subject? Tutorials or
> something online? I know what a data model is. But I have no idea how
> "the table-drawing code can then ask the data model"....
Google around for "metadata" and "data driven/led development"
Basically your data model needs to be able to describe itself in enough
detail that your code can draw it without having to have lots of
parameters set.
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Alexander Staubo | 2007-09-13 15:17:13 | Re: query help |
Previous Message | volunteer | 2007-09-13 15:06:35 | query help |