nysus has asked for the wisdom of the Perl Monks concerning the following question:
Can someone please step me through the basics of creating a Moose class and automatically associating attributes in the class with columns in a database? For example, it would be cool if I could add an attribute to a class and have it automagically generate a mysql column based on the properties of the attribute. Surely there must be a module that makes this easy. I've kind of started doing this on my own but it would be stupid to reinvent the wheel. I don't know much about "orm" or other acronyms so the simplest terms you can put it in, the better. Thanks so much!
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Associating Moose class with database table
by 1nickt (Canon) on Jun 13, 2018 at 01:45 UTC | |
|
Re: Associating Moose class with database table
by trwww (Priest) on Jun 13, 2018 at 05:19 UTC | |
|
Re: Associating Moose class with database table
by Your Mother (Archbishop) on Jun 13, 2018 at 15:54 UTC | |
by 1nickt (Canon) on Jun 13, 2018 at 16:21 UTC | |
|
Re: Associating Moose class with database table
by Anonymous Monk on Jun 15, 2018 at 18:43 UTC |