Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Learning DBIx

by mnooning (Beadle)
on Apr 29, 2007 at 00:28 UTC ( #612603=perlquestion: print w/replies, xml ) Need Help??
mnooning has asked for the wisdom of the Perl Monks concerning the following question:


I need to learn DBIx. I will eventually be using it with PostgreSQL,
but presumably if I know DBIx I can use DBIx and let DBIx deal with
communicating with PostgreSQL.

I have had a difficult time knowing where to begin. Is there a website
for DBIx like the one for DBI

What I would really like are tutorials similar to those available for
DBI. Especially a book like the one DBI has. I found a tutorial on
DBIx::Class::I_Forget::Whatever, and there is other
DBIx::whatever::manual documentation, but I do not want to waste time
reading what I will not ever use.

The plethora of DBIx modules with their POD is undoubtedly a good
thing, but there really should be some sort of a reccommended reading
list for those just starting out.

Recommendations, anyone?

Replies are listed 'Best First'.
Re: Learning DBIx
by merlyn (Sage) on Apr 29, 2007 at 00:32 UTC
    Unless I'm mistaken, "DBIx::" is merely a prefix for "things that bolt-on to DBI". It's not one package. You can't "learn" "DBIx" any more than you can learn the first half of a phone number in any useful way.
      After reading your reply I went back to the DBI website and saw that
      it has a link to the DBIx modules under the title "DBI Extensions", so
      clearly all of the DBIx modules are things that bolt onto DBI. That
      tells me that I can start by reading the DBI book.

Re: Learning DBIx
by fenLisesi (Priest) on Apr 29, 2007 at 08:41 UTC
    The following modules will generally help you interact with your database table rows as Perl objects. Some will help you construct SQL, so that you may get away with no-SQL most of the time, including some basic joins. The SQL that they generate will use basic security best practices and save you headaches. Some will help with paging the result sets. Jifty aims to go further and implement half your application for you. The order, from top to bottom, seems to be the general order of preference of wiser monks these days. I only have significant experience with Class::DBI::Sweet, which does all I need, though sometimes you have to bend backwards. Its performance also leaves something to be desired, especially compared to the first two, according to some benchmarks. In my next project, I would probably start with one of the top three.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://612603]
Approved by shigetsu
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2018-05-22 14:25 GMT
Find Nodes?
    Voting Booth?