[sf-perl] ORM vs. DBI

Dan Lyke danlyke at flutterby.com
Mon Feb 28 07:57:25 PST 2011


On Sun, 27 Feb 2011 10:44:10 -0800
Michael Friedman <friedman at highwire.stanford.edu> wrote:
> Aha. Yeah, I was thinking about how using an ORM for a small database
> would be useful. You could design the data objects in Perl and then
> run a script to actually create the db from that. No more accessor
> writing too. (Although that's easily taken care of in other ways.)

It doesn't do decent decoupling of the model from the view, but when I
started playing with Moose I realized that I wanted something where I
could stuff the niggling little differences between databases and let
me specify my objects once, but everything else I was looking at seemed
like hard overkill.

This is what the hour or so I was mucking about with it gave me, with
a little evolution as I've used it for some other tools:

http://www.flutterby.net/volatilecode/FbyDB.pm.html

I use it because it actually makes my life easier, without getting in
my way.

Dan



More information about the SanFrancisco-pm mailing list