Re: [sqlalchemy] Statement timeout for oracle and mssql

2018-11-29 Thread Mike Bayer
for oracle, the only "timeout" I can find is this: https://cx-oracle.readthedocs.io/en/latest/connection.html?highlight=timeout#Connection.callTimeout looks like a connection attribute, can't set it within connect(), so you'd need to use an event to set it across the board: from sqlalchemy impor

[sqlalchemy] Statement timeout for oracle and mssql

2018-11-29 Thread siddhesh
Hi, How to set Statement timeout for oracle and mssql in sql- alchemy ? -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/

[sqlalchemy] statement preparation in sa

2013-01-13 Thread alex bodnaru
hello friends, i've just made an alternative sqlite driver, to overcome the dbapi short of running multiple statements separated by ';'. executescript would do the work, but it won't receive parameters. hence, i'd like to perform the parameter substitution inside the driver, before turning to exe

[sqlalchemy] statement profiling on production

2009-02-12 Thread Diez B. Roggisch
Hi, with our old homegrown SQL-"wrapping" we enjoyed the possibility to time each sql-query to drill down on performance bottlenecks. This is currently not possible for us using SA. So I'd like to ask how to approach this. I found some references on the net talking about profiling in unittest

[sqlalchemy] statement

2007-03-15 Thread Julien Cigar
Hello list, Any idea how I could generate this SQL statement under SQLAlchemy (especially the PostreSQL ARRAY clause ...) ? SELECT i.id, t.name AS taxo, i.geographic_range, ARRAY( (SELECT h.name FROM habitats h, invasive_habitats ih WHERE h.id=ih.hab