2

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?

tobyink
  • 13,478
  • 1
  • 23
  • 35
Miguel Prz
  • 13,718
  • 29
  • 42

3 Answers3

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
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 :-)

https://github.com/bradhaywood/DBIx-Moo

Brad
  • 38
  • 4