I'd like to use Moo as the Object Oriented approach for my app (with a relational database). I had used DBIx::Class & Rose::DB::Object in the past, but these distributions are not Moo (neither Moose) related. I am looking for an ORM (or similar) with a Moo integration, do you know if this exists, or anyone has related plans?
Asked
Active
Viewed 1,287 times
3 Answers
3
I don't know what do you mean by Moo integration, but I just installed the last version of DBIx::Class
and saw that Moo
was installed as a dependency. So, in version 0.08209, DBIx::Class
has Moo
as a dependency

Tudor Constantin
- 26,330
- 7
- 49
- 72
-
I mean define domain objects (subclassing Moo), and using it to do database operations (CRUD) – Miguel Prz Mar 02 '13 at 12:32
-
1DBIx::Class is what you're after. It's big and heavy and the query syntax isn't great when it gets complex. Still one of the best ORMs I've used though. – Richard Huxton Mar 02 '13 at 13:50
-
1DBIx::Class plays nicely with Moo. – RickF Mar 05 '13 at 21:47
2
Have a look at DBIx::Mint You will need to add a role to your Moo classes
with 'DBIx::Mint::Table';
And also write a schema file. This schema file should have all information on classes you're going to use (class-to-table mapping, relationship to other tables/classes). No need to write schema file for each Moo class.

camelotus
- 331
- 2
- 4
-
Old question, but this looks like exactly what I was looking for myself. Thanks a ton for posting this. – Casao May 05 '14 at 21:36
1
I'm working on something very similar actually - I wanted a Moo-based approach, too. Technically I'm writing it to learn more about Moo, wasn't meant for anything serious, but you might be able to build on it if you wished :-)

Brad
- 38
- 4