On 16 Oct 2003, at 22:12, Dean Arnold wrote:

Has anyone attempted to write a DBD
using Inline::C (or C++) ? I'm looking into updating a driver
to selectively switch between a pure Perl implementation,
and a native C i/f to a low level vendor API library if its available, in order
to get more performance/functionality. Inline::C looked
like an attractive alternative (esp w/ Inline::Struct) to all the XS
madness. This would allow the driver to exploit Perl's
strenghts for parsing SQL, mapping things w/ hashes, etc, but
use the vendor lib for the low level data movement, as opposed
to writing a complete DBD in C/XS.

Writing a DBD driver is almost all pure C and/or perl. There's very little XS. I don't think Inline::C would actually buy you anything because you have to know the perl internals API regardless of whether you use XS or Inline.


Just skip the bootstrap call if you can't do XS. Or hack something into the Makefile.PL to edit the source code.

Matt.

Reply via email to