This is a POE component that I have been teething on for a long time. Yet I've never "finished" it. I have a perfectionist disease that forces me to naw on code for to long. It needs to be free.
It works ... mostly ... I think ... well for me at least.
Here are the advantages as I see them:
0) Works a lot like DBI. Here is an example
$k->post(ladbi => 'connect',
SuccessEvent => 'connected',
FailureEvent => 'connect_failed',
Args => ["dbi:Pg:dbname=$dbname", $user, $passwd]);
1) (nearly) All the DBI API is implemented as events that you
can post to the POE::Component::LaDBI session.
2) You can set up all the environment in your regular code,
because I use POE::Wheel::Run on a subroutine to fork the
sub-process to talk to asyncronously.
3) It's debug friendly. Setting the an environment variable named
PERL_DEBUG or DEBUG, then the sub-process will output lots of
junk to ladbi_run.log . I stole some of this mechanism from
Carp::Assert .
Here are the problems as I see them:
0) documentation sucks, and is probably incomplete. I don't do speling.
1) no regression tests. I've used my own apps and DB to test a
subset of all the calls that POE::Component::LaDBI "supports".
2) LaDBI::Engine is a beautiful example of copy-n-paste coding.
The "kinds" of handlers are much less than all the handlers I've
written. I chose to spam all the request handlers even though I
could abstract request handlers a bit. You'll know what I am
talking about when you look at the code.
3) LaDBI::* is kinda overly abstract interface. That is because I was
also thinking of making a SOAP service as a mod_perl Module. Yeah,
like I'll ever get around to that.
4) Code meets real world. It works for my uses, duh.
Ah, the License. Now none. It's mine, all mine. The next time
I post it out there, the (incomplete) documentation will say
"the same terms as Perl"; Artistic License and LGPL I think.
I want to submit it to CPAN, but I am not clear on the process.
Yeah I read the FAQ which says post to [EMAIL PROTECTED]
and pray. I wanted to find out if the POE crowd thinks it worthy
of CPAN.
Really, feedback is what I am hoping for.
Alright, It is late and I am a bit punchy.
Enjoy,
-Sean.
P.S. Sample code availablue on request.
POE-Component-LaDBI-0.9.tar.gz
Description: Binary data
