* Jim Schneider <[EMAIL PROTECTED]> [2006-03-14 01:05]:
>For example, if you have a PERSON table (with PERSON_ID, NAME,
>ADDRESS_ID, and EMAIL columns), and an ADDRESS table (with
>ADDRESS_ID, LINE1, LINE2, CITY, STATE, ZIP columns (sorry for
>the USA-centric example)), your "use" clause would look
>something like this:
>
>use DBIx::Class::Simple ( {
>       schema => 'example',
>       tables => [
>           { table => 'person',
>               columns => [
>                   { name => 'person_id' }, { name => 'name', },
>                   { name => 'address_id' }, { name => 'email' }, ], },
>           { table => 'address',
>               columns => [
>                   { name => 'address_id', }, { name => 'line1', },
>                   { name => 'line2', }, { name => 'city', },
>                   { name => 'state', }, { name => 'zip', }, ], }, ], }, );
>
>(I've compressed the example a bit to save space).

DBIx::ORM::Declarative?

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

Reply via email to