Yes, I was wanting the same thing. But I don't think this is possible
because all the POE stuff is built on IO abstractions. This is derived from
basic operating system features that allow processes to get somehow
signalled when stuff is available on a stream. The  DBI stuff is built C
'client libraries' that aren't IO oriented. You could always use the
POE::Wheel::Run module to fork off the dbi call.  Inside the forked perl
code, you can interact with the database and talk back to the parent
process using print statements. The hassle with that is that you probably
will need to make a new connection to the database each time you fork
something off (I can't imagine how 2 processes can share the same database
connection).

I was planning on trying this sometime.


                                                                                       
            
                    "Andrew A. Chen"                                                   
            
                    <achen-poe@micro        To:     [EMAIL PROTECTED]                       
            
                    pixel.com>              cc:                                        
            
                                            Subject:     DBI Module for POE?           
            
                    05/25/01 10:02                                                     
            
                    AM                                                                 
            
                                                                                       
            
                                                                                       
            




Hello-
I'm interested in doing some SQL queries from POE.  Normally this wouldn't
be an issue, but the queries I'm running will be taking an appreciable
amount of time, and it would be nice to do other stuff while waiting for a
reply from the server.  That being said, is there a PoCo::DBI module or
something out there that's not on CPAN?  Thanks.

-a




Reply via email to