]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- added "statement_options()" to Query, to so options can be
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 16 Jan 2010 22:44:04 +0000 (22:44 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 16 Jan 2010 22:44:04 +0000 (22:44 +0000)
commitabccc0624228def744b0382e84f01cf95e0d3aed
treefca7eb29b90211daa699da6d0358f81243c243d9
parent00df05061e7a0333022d02705c21270f9de4edab
- added "statement_options()" to Query, to so options can be
passed to the resulting statement. Currently only
Select-statements have these options, and the only option
used is "stream_results", and the only dialect which knows
"stream_results" is psycopg2.
- Query.yield_per() will set the "stream_results" statement
option automatically.
- Added "statement_options()" to Selects, which set statement
specific options. These enable e.g. dialect specific options
such as whether to enable using server side cursors, etc.
- The psycopg2 now respects the statement option
"stream_results". This option overrides the connection setting
"server_side_cursors". If true, server side cursors will be
used for the statement. If false, they will not be used, even
if "server_side_cursors" is true on the
connection. [ticket:1619]
- added a "frozendict" from http://code.activestate.com/recipes/414283/,
adding more default collections as immutable class vars on
Query, Insert, Select
CHANGES
lib/sqlalchemy/dialects/postgresql/psycopg2.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/schema.py
lib/sqlalchemy/sql/expression.py
lib/sqlalchemy/util.py
test/aaa_profiling/test_orm.py
test/dialect/test_postgresql.py
test/orm/test_query.py
test/sql/test_generative.py