Ok, thanks. I will follow CVS and test this.
On Fri, Mar 7, 2008 at 5:31 PM, Markus Hoenicka <[EMAIL PROTECTED]> wrote: > João Henrique Freitas writes: > > Hello, > > > > Is a way to use PQputCopyData and PQputCopyEnd (like describe > > http://www.postgresql.org/docs/8.3/static/libpq-copy.html) with libdbi > > framework? > > > > Maybe *dbi_driver_specific_function()? > > > > I've started implementing the driver_specific_function API for the > firebird, mysql, pgsql, sqlite, and sqlite3 drivers. Using the API > required minor changes in libdbi as well, so in order to test the > interface you'll need the CVS versions of both libdbi and > libdbi-drivers. > > First of all, using driver-specific functions is a bad thing :-/ > unless you provide workarounds for other drivers in your code. That > said, libdbi now supports calling the database engine client library > functions of the abovementioned drivers as far as possible. A few > limitations exist: > > (1) MySQL apparently implements some of the (usually deprecated) > functions as macros which have no symbol in the library. You can't > call these "functions", but usually a newer replacement exists. > > (2) Using driver-specific functions requires an additional header > file, <dbi/dbi-dev.h> in addition to <dbi/dbi.h> > > (3) Calling the functions often requires knowledge of the inner > workings of the driver. This holds true e.g. for firebird, as the > connection handle cannot simply be cast to a structure pointer > which provides a database handle. > > I've added appropriate tests to the test program which you can > conveniently run by "make check". Please have a look at > test_custom_function() to see how to call driver-specific functions. > > > > regards, > Markus > > -- > Markus Hoenicka > [EMAIL PROTECTED] > (Spam-protected email: replace the quadrupeds with "mhoenicka") > http://www.mhoenicka.de > > -- ----------------------------------------------------------- João Henrique Freitas - joaohf_at_gmail.com Campinas-SP-Brasil BSD051283 LPI 1 http://joaohf.pbwiki.com http://www.livejournal.com/users/joaohf/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ libdbi-users mailing list libdbi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libdbi-users