[Dbix-class] Column Metadata
Christopher H. Laco
claco at chrislaco.com
Wed Nov 8 23:38:26 GMT 2006
Matt S Trout wrote:
> John Napiorkowski wrote:
>> Hi,
>>
>> Right now if I stuff extra things into the column
>> metadata info like so:
>>
>> __PACKAGE__->add_columns(
>> "thumbnail_path",
>> {
>> data_type =3D> "VARCHAR", default_value =3D> "",
>> is_nullable =3D> 0, size =3D> 255,
>> label =3D> "Thumbnail Path",
>> field_type=3D>"Textfield",
>> },
>>
>> I can retrieve that via the result_source column info
>> method. My question is do people think me putting my
>> metadata here is a bad idea, in the sense that in some
>> future revision of DBIx the metadata will have some
>> sort of enforcement and won't support my arbitrary key
>> values anymore?
> =
> It was designed for you to do that.
> =
> We've got production code all over the place that uses it and I've
> suggested it to a lot of people before now so I think I'd be summarily
> executed by clients and users if I ever let it get broken :)
> =
recommended how...
meta info describing what the column/data is...
or meta info about how to use the column in presentation?
-------------- 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/20061108/5b=
901e41/signature.pgp
More information about the Dbix-class
mailing list