diff options
author | Jason Kirtland <jek@discorporate.us> | 2007-09-07 23:13:16 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2007-09-07 23:13:16 +0000 |
commit | bf35590e15de3fac7977757d89bc994400f26125 (patch) | |
tree | 51648f676e421f938f9142a0dc3de8d59ef93746 /lib/sqlalchemy/databases/information_schema.py | |
parent | 179da3ecd90bd33762343e74822040a4a6818d6e (diff) | |
download | sqlalchemy-bf35590e15de3fac7977757d89bc994400f26125.tar.gz |
Removed DefaultDialect.ischema and information_schema's ISchema (which incidentally had a 'toengine' in it...)
Diffstat (limited to 'lib/sqlalchemy/databases/information_schema.py')
-rw-r--r-- | lib/sqlalchemy/databases/information_schema.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/sqlalchemy/databases/information_schema.py b/lib/sqlalchemy/databases/information_schema.py index 48f33cb96..1b3b3838a 100644 --- a/lib/sqlalchemy/databases/information_schema.py +++ b/lib/sqlalchemy/databases/information_schema.py @@ -76,26 +76,6 @@ ref_constraints = Table("referential_constraints", ischema, Column("update_rule", String), Column("delete_rule", String), schema="information_schema") - -class ISchema(object): - def __init__(self, engine): - self.engine = engine - self.cache = {} - - def __getattr__(self, name): - if name not in self.cache: - # This is a bit of a hack. - # It would probably be better to have a dict - # with just the information_schema tables at - # the module level, so as to avoid returning - # unrelated objects that happen to be named - # 'gen_*' - try: - gen_tbl = globals()['gen_'+name] - except KeyError: - raise exceptions.ArgumentError('information_schema table %s not found' % name) - self.cache[name] = gen_tbl.toengine(self.engine) - return self.cache[name] def table_names(connection, schema): |