Hi, I'm wondering what resources (e.g. tutorials) are available for
learning how to write my own DBI driver (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.

Reply via email to