[Dbix-class] New module for DBIx::Class (Store many columns in
one)
Matt S Trout
dbix-class at trout.me.uk
Thu May 10 14:13:08 GMT 2007
On Thu, May 10, 2007 at 12:35:00PM +0400, Oleg Pronin wrote:
> 2007/5/10, Matt S Trout <dbix-class at trout.me.uk>:
> >
> >On Thu, May 10, 2007 at 02:49:25AM +0400, Oleg Pronin wrote:
> >> I have some modules that works with objects and do not know how these
> >> objects is designed inside.
> >> They are universal programs that import some data from one project to
> >> another (in XML). All they need is a small config describing what and
> >where
> >> to find.
> >> For these modules it doesn't matter is the property a column or virtual
> >> column. They just set some data (usually via set/get column for
> >perfomance
> >> improvements). The ability to hide design of property (frozen or not
> >etc) is
> >> sometimes very useful. Isn't this is one of main features of DBIC?
> >
> >I see your point. I think the ultimate solution to this is Moose and
> >multiple
> >meta-attr classes - so your code that doesn't care what sort of property
> >it
> >is just talks to "all attributes" and the persistence part handles
> >specific
> >types of attribute only.
>
(top-posting fixed)
>
> Could you be specify some examples of code for me to understand what did you
> mean? (and what is "Moose" ? :)
Plenty examples in the way http://code2.0beta.co.uk/reaction/svn does stuff.
Moose is a full meta-protocol enabled object system, go find it on CPAN :)
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director Want a managed development or deployment platform?
Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/ http://www.shadowcatsystems.co.uk/
More information about the Dbix-class
mailing list