<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Then, just define an extra type that corresponds to a Moose type, or<br>
just some basic rules (varchar/char => Str, etc)<br><br></blockquote><div><br>How about a metaclass? That way I could add DBIC metadata to my attributes. <br><br>Like this:<br><br>has 'name' => (<br> metaclass => 'DBIC',<br>
is => 'rw', <br> isa => 'Str',<br> dbic => { data_type => 'varchar', size => 50, ... }<br>);<br><br>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). <br>
<br>-rod<br></div></div>