FAQ

Then, just define an extra type that corresponds to a Moose type, or
just some basic rules (varchar/char => Str, etc)
How about a metaclass? That way I could add DBIC metadata to my attributes.

Like this:

has 'name' => (
metaclass => 'DBIC',
is => 'rw',
isa => 'Str',
dbic => { data_type => 'varchar', size => 50, ... }
);

The Moose class would probably need to inherit from DBIx::Class somehow, so
I can set the table name. But I guess this is just the opposite (use DBIC in
Moose) from what you're suggesting (use Moose in DBIC).

-rod
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100122/499ec585/attachment.htm

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 7 of 7 | next ›
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedJan 21, '10 at 5:37p
activeJan 22, '10 at 8:31p
posts7
users5
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2022 Grokbase