Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Object Persistence, Moose and playing nicely with ActiveRecord

by zby (Vicar)
on Sep 08, 2008 at 14:52 UTC ( #709784=note: print w/replies, xml ) Need Help??


in reply to Object Persistence, Moose and playing nicely with ActiveRecord

As Corion said this is a bit under specified - but DBIx::Class can be used with any DB schema - it does not impose any naming conventions, you can use composed (multi column) primary keys and I am pretty sure you can do single table inheritance with it. Unfortunately you'll need to wait a bit for the complete moosification of DBIx::Class. You can also have a look at Fey::ORM - which is Moose based, but is still experimental.
  • Comment on Re: Object Persistence, Moose and playing nicely with ActiveRecord

Replies are listed 'Best First'.
Re^2: Object Persistence, Moose and playing nicely with ActiveRecord
by pdcawley (Hermit) on Sep 08, 2008 at 17:35 UTC
    Waiting for moosification of DBIx::Class - I did find something demonstrating Moose and DBIx::Class playing together, but the repeated declarations gave me the shudders. It seems as if it shouldn't be hard to extend Moose's declaration syntax to implement something like MooseX::DBI, but it's one of those Simple Matter Of Programming things isn't it? Easy in principle, but tedious in practice.
      I did find something demonstrating Moose and DBIx::Class playing together, but the repeated declarations gave me the shudders.

      You can take a look at the as-yet-unreleased MooseX::DBIC here which provides a Moose-ish layer over the top of DBIx::Class and (IMO at least) nicely merges the strengths of DBIx::Class with the meta-goodness of Moose. It is not 100% feature complete, there are still some bridging between more obscure DBIC features to be done. But fwiw, this is currently used in a production application and so far so good.

      -stvn
        I realise that this probably isn't the forum for it, but can I just say publicly that stvn rocks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://709784]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2022-05-22 20:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (81 votes). Check out past polls.

    Notices?