summaryrefslogtreecommitdiff
path: root/test/dialect/mysql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-08-18 21:37:48 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-08-18 21:37:48 +0000
commit7c6c1b99c2de00829b6f34ffba7e3bb689d34198 (patch)
treeacd6f8dc84cea86fc58b195a5f1068cbe020e955 /test/dialect/mysql.py
parent534cf5fdbd05e2049ab9feceabf3926a5ab6380c (diff)
downloadsqlalchemy-7c6c1b99c2de00829b6f34ffba7e3bb689d34198.tar.gz
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
Diffstat (limited to 'test/dialect/mysql.py')
-rw-r--r--test/dialect/mysql.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dialect/mysql.py b/test/dialect/mysql.py
index 46e0a7137..294842854 100644
--- a/test/dialect/mysql.py
+++ b/test/dialect/mysql.py
@@ -154,7 +154,7 @@ class TypesTest(AssertMixin):
table_args.append(Column('c%s' % index, type_(*args, **kw)))
numeric_table = Table(*table_args)
- gen = testbase.db.dialect.schemagenerator(testbase.db, None, None)
+ gen = testbase.db.dialect.schemagenerator(testbase.db.dialect, testbase.db, None, None)
for col in numeric_table.c:
index = int(col.name[1:])
@@ -238,7 +238,7 @@ class TypesTest(AssertMixin):
table_args.append(Column('c%s' % index, type_(*args, **kw)))
charset_table = Table(*table_args)
- gen = testbase.db.dialect.schemagenerator(testbase.db, None, None)
+ gen = testbase.db.dialect.schemagenerator(testbase.db.dialect, testbase.db, None, None)
for col in charset_table.c:
index = int(col.name[1:])
@@ -707,7 +707,7 @@ class SQLTest(AssertMixin):
def colspec(c):
- return testbase.db.dialect.schemagenerator(
+ return testbase.db.dialect.schemagenerator(testbase.db.dialect,
testbase.db, None, None).get_column_specification(c)
if __name__ == "__main__":