[Dbix-class] Column Metadata

Christopher H. Laco claco at chrislaco.com
Thu Nov 2 17:32:24 GMT 2006


Dave Howorth wrote:
> Brandon Black wrote:
>> I still think its a great place to put meta-info that goes beyond what
>> the DB traditionally knows.
> =

> Putting extra information into a data structure 'owned' by another
> component can cause namespace collisions. Better to have a specific
> expansion hook like { private =3D> { your =3D> 'data', goes =3D> 'here' }=
 }, IMHO.
> =

>> Putting a "label =3D> 'Street Address'" in the attributes of a column do=
es
>> not violate any kind of separation.
> =

> I think this particular example does cross a fundamental separation. I
> agree with Zbyszek: labels are part of the view/presentation, not the
> model. What if you also want your data to be used by Chinese users?

And conversly, if it was description =3D> 'This is the street address',
which describes what the field holds, them I'm all for it.

An odd place to draw the line, but to each their own.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://jules.scsys.co.uk/pipermail/dbix-class/attachments/20061102/5a=
c628c1/signature.pgp


More information about the Dbix-class mailing list