htsql / src / htsql_pgsql / tweak / system /

Diff from to


             schema_name = unicode(schema_name)
             table_name = unicode(table_name)
             column_names = map(unicode, column_names)
-            if schema_name not in catalog.schemas:
+            if schema_name not in catalog:
-            schema = catalog.schemas[schema_name]
-            if table_name not in schema.tables:
+            schema = catalog[schema_name]
+            if table_name not in schema:
-            table = schema.tables[table_name]
+            table = schema[table_name]
             if any(column_name not in table.columns
                    for column_name in column_names):
             keys = self.foreign_keys[origin_schema_name, origin_table_name]
             origin_schema_name = unicode(origin_schema_name)
             origin_table_name = unicode(origin_table_name)
-            if origin_schema_name not in catalog.schemas:
+            if origin_schema_name not in catalog:
-            origin_schema = catalog.schemas[schema_name]
-            if origin_table_name not in origin_schema.tables:
+            origin_schema = catalog[schema_name]
+            if origin_table_name not in origin_schema:
-            origin = origin_schema.tables[origin_table_name]
+            origin = origin_schema[origin_table_name]
             for (origin_column_names, (target_schema_name, target_table_name),
                     target_column_names) in keys:
                 origin_column_names = map(unicode, origin_column_names)
                 origin_columns = [origin.columns[column_name]
                                   for column_name in origin_column_names]
-                if target_schema_name not in catalog.schemas:
+                if target_schema_name not in catalog:
-                target_schema = catalog.schemas[schema_name]
-                if target_table_name not in target_schema.tables:
+                target_schema = catalog[schema_name]
+                if target_table_name not in target_schema:
-                target = target_schema.tables[target_table_name]
+                target = target_schema[target_table_name]
                 if any(column_name not in target.columns
                        for column_name in target_column_names):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.