Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: DB -> C++ -> XS/Swig -> DBI -> Perl

by Jenda (Abbot)
on Jan 29, 2014 at 11:16 UTC ( [id://1072482]=note: print w/replies, xml ) Need Help??


in reply to DB -> C++ -> XS/Swig -> DBI -> Perl

I think you'll have to provide more information. What database? What OS? What exactly is the "thing" the C++ method returns? How do you use it later?

There might be a way to create the right DBI object wrapping the connection opened elsewhere, but if there is it will be driver specific.

Jenda
Enoch was right!
Enjoy the last years of Rome.

Replies are listed 'Best First'.
Re^2: DB -> C++ -> XS/Swig -> DBI -> Perl
by AbominableMonk (Novice) on Jan 29, 2014 at 11:27 UTC
    Apologies: Oracle 10, on Solaris 5.10, using ProC/C++ and Sun C++ 5.9. Perl is 5.8. It's a typical Oracle Connection instance which is returned.

      Have a look at the ora_use_proc_connection option in DBD::Oracle docs. Maybe that can be used to create a DBI object for the connection you get from the C++ method.

      Jenda
      Enoch was right!
      Enjoy the last years of Rome.

        Hmm, interesting tip, thanks. Definitely worth digging into.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1072482]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-03-28 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found