Nick Kew wrote:
On Sun, 28 Nov 2004, Stas Bekman wrote:


Please take a look at DBDI Project.
http://groups.google.com/[EMAIL PROTECTED]
which already targets Perl6 DBI, Python DBI, Ruby DBI, PHP DBI etc.

Hmmm.

Interesting in principle, but there's not sufficient information at that
URL to determine whether it's useful or relevant.  The description reads
more like a layer on top of [something answering the description of]
libdbi than anything relevant to httpd or APR.  Notwithstanding Tim
Bunce's personal credibility rating, libdbi would seem a better
startingpoint, simply by virtue of the fact that it has a nice clear
set of published APIs.

DBDI builds on the existing familiar Perl DBI/DBD.

My goal is simply a thin layer that ties a DBDriver API in to Apache:
a connection (nonthreaded MPMs - trivial) or connection pool (threaded
MPMs - the real purpose) managed by the server, and providing request-
or connection-oriented access to a database handle.  That then becomes
an API that mod_perl et al can trivially bind in to for web apps,
notwithstanding their existing/native DBI/DBD frameworks.  The
reverse is not the case, unless you can convince me otherwise.

Several folks on IRC favour an apr_dbi layer.  That's great, but it's a
different project, and I'd certainly want to look at harnessing existing
DBI projects rather than reinventing that wheel.

You took my reply out of context, Nick. I was replying to:

Paul Querna wrote:
> +1 in concept from me. One thing I think needs to be kept in mind is a > separation from Apache-ism so it could be used by Python/PHP/Perl
> without requiring Apache.


saying that Python/PHP/Perl (at least Perl) most likely will not use the proposed API because they already have a well established and widely used API.

I just quoted DBDI to mention that perl-only DBD is now going to be working across Python/PHP/Perl/etc.

I have nothing against your proposal otherwise.

--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Reply via email to