]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
1. Module layout. sql.py and related move into a package called "sql".
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 18 Aug 2007 21:37:48 +0000 (21:37 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 18 Aug 2007 21:37:48 +0000 (21:37 +0000)
commit7c6c1b99c2de00829b6f34ffba7e3bb689d34198
treeacd6f8dc84cea86fc58b195a5f1068cbe020e955
parent534cf5fdbd05e2049ab9feceabf3926a5ab6380c
1. Module layout.  sql.py and related move into a package called "sql".
2. compiler names changed to be less verbose, unused classes removed.
3. Methods on Dialect which return compilers, schema generators, identifier preparers
have changed to direct class references, typically on the Dialect class itself
or optionally as attributes on an individual Dialect instance if conditional behavior is needed.
This takes away the need for Dialect subclasses to know how to instantiate these
objects, and also reduces method overhead by one call for each one.
4. as a result of 3., some internal signatures have changed for things like compiler() (now statement_compiler()), preparer(), etc., mostly in that the dialect needs to be passed explicitly as the first argument (since they are just class references now).  The compiler() method on Engine and Connection is now also named statement_compiler(), but as before does not take the dialect as an argument.

5. changed _process_row function on RowProxy to be a class reference, cuts out 50K method calls from insertspeed.py
36 files changed:
lib/sqlalchemy/databases/access.py
lib/sqlalchemy/databases/firebird.py
lib/sqlalchemy/databases/informix.py
lib/sqlalchemy/databases/mssql.py
lib/sqlalchemy/databases/mysql.py
lib/sqlalchemy/databases/oracle.py
lib/sqlalchemy/databases/postgres.py
lib/sqlalchemy/databases/sqlite.py
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/ext/sqlsoup.py
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/orm/sync.py
lib/sqlalchemy/orm/util.py
lib/sqlalchemy/schema.py
lib/sqlalchemy/sql/__init__.py [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py [moved from lib/sqlalchemy/ansisql.py with 93% similarity]
lib/sqlalchemy/sql/expression.py [moved from lib/sqlalchemy/sql.py with 93% similarity]
lib/sqlalchemy/sql/operators.py [moved from lib/sqlalchemy/operators.py with 100% similarity]
lib/sqlalchemy/sql/util.py [moved from lib/sqlalchemy/sql_util.py with 68% similarity]
lib/sqlalchemy/sql/visitors.py [new file with mode: 0644]
test/dialect/mysql.py
test/engine/reflection.py
test/orm/dynamic.py
test/orm/query.py
test/sql/constraints.py
test/sql/generative.py
test/sql/labels.py
test/sql/query.py
test/sql/quote.py
test/sql/testtypes.py
test/testlib/testing.py