From 7c6c1b99c2de00829b6f34ffba7e3bb689d34198 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 18 Aug 2007 21:37:48 +0000 Subject: 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 --- lib/sqlalchemy/sql/__init__.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 lib/sqlalchemy/sql/__init__.py (limited to 'lib/sqlalchemy/sql/__init__.py') diff --git a/lib/sqlalchemy/sql/__init__.py b/lib/sqlalchemy/sql/__init__.py new file mode 100644 index 000000000..06b9f1f75 --- /dev/null +++ b/lib/sqlalchemy/sql/__init__.py @@ -0,0 +1,3 @@ +from sqlalchemy.sql.expression import * +from sqlalchemy.sql.visitors import ClauseVisitor, NoColumnVisitor + -- cgit v1.2.1