[sqlalchemy] Re: Accessing DBAPI cursor object from connection

2007-01-18 Thread Jonathan Ellis


engine.raw_connection().cursor()

On 1/18/07, Sean Davis [EMAIL PROTECTED] wrote:

I would like to access the underlying psycopg2 connection to get at a DBAPI2
cursor with the ultimate goal of using the copy_from/copy_to protocol for
moving large amounts of data to/from the database.  I can't seem to find a
way to do that from a db engine or connection object.  Is there a way
(assuming that I am using postgres)?

Thanks,
Sean


 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sqlalchemy group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~--~~~~--~~--~--~---



[sqlalchemy] Re: Accessing DBAPI cursor object from connection

2007-01-18 Thread Sean Davis


On Thursday 18 January 2007 17:42, Jonathan Ellis wrote:

engine.raw_connection().cursor()


Ah, yes!  Thanks.

Sean


On 1/18/07, Sean Davis [EMAIL PROTECTED] wrote:
 I would like to access the underlying psycopg2 connection to get at a
 DBAPI2 cursor with the ultimate goal of using the copy_from/copy_to
 protocol for moving large amounts of data to/from the database.  I can't
 seem to find a way to do that from a db engine or connection object.  Is
 there a way (assuming that I am using postgres)?

 Thanks,
 Sean




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sqlalchemy group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~--~~~~--~~--~--~---