On Tue, 24 Jan 2006 18:29:27 -0500, [EMAIL PROTECTED] wrote:

> Hi, I'm wondering what resources (e.g. tutorials) are available for
> learning how to write my own DBI driver (DBD).

Did you read 

# man DBI::DBD

? 

> Is there any dummy/stub
> DBD or an otherwise very simple DBD to learn from? How significant an
> undertaking would it be to write the simplest possible dummy/stub DBD?
> Is it possible to write it using Perl or another non-compiled
> language?
> 
> My overall goal is to modify a program so that instead of connecting
> to Postgres it will insert data into my own "database," which will do
> something very simple, e.g. print out the queries or forward the
> queries onto Postgres (a do-nothing intermediate layer).
> 
> Writing my own DBD seems like the cleanest way to approach this (since
> nothing but the connection string need be changed in the code base),
> but this is too significant an undertaking, then I will instead
> consider simply going through the code base and replacing all calls to
> the DBI's execute() method with calls to my own function.
> 
> Any suggestions/advice would be greatly appreciated. Thanks in advance.
> 
> 


-- 
H.Merijn Brand        Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using Perl 5.6.2, 5.8.0, 5.8.5, & 5.9.2  on HP-UX 10.20, 11.00 & 11.11,
 AIX 4.3 & 5.2, SuSE 9.2 & 9.3, and Cygwin. http://www.cmve.net/~merijn
Smoking perl: http://www.test-smoke.org,    perl QA: http://qa.perl.org
 reports  to: [EMAIL PROTECTED],                [email protected]

Reply via email to