summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/schema.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-10-18 17:34:52 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-10-18 17:34:52 +0000
commit1127b10b278440247f18d1859e1f70a4aafaa9fb (patch)
treed1b149d4bf92b1a01235000490438bfd91391a0e /lib/sqlalchemy/schema.py
parent654794cdcf89eb7842ddf06bd9316bd860bca9e7 (diff)
downloadsqlalchemy-1127b10b278440247f18d1859e1f70a4aafaa9fb.tar.gz
- "not equals" comparisons of simple many-to-one relation
to an instance will not drop into an EXISTS clause and will compare foreign key columns instead. - removed not-really-working use cases of comparing a collection to an iterable. Use contains() to test for collection membership. - Further simplified SELECT compilation and its relationship to result row processing. - Direct execution of a union() construct will properly set up result-row processing. [ticket:1194]
Diffstat (limited to 'lib/sqlalchemy/schema.py')
-rw-r--r--lib/sqlalchemy/schema.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py
index df994d689..d66a51de4 100644
--- a/lib/sqlalchemy/schema.py
+++ b/lib/sqlalchemy/schema.py
@@ -65,20 +65,20 @@ class SchemaItem(object):
def __repr__(self):
return "%s()" % self.__class__.__name__
+ @property
def bind(self):
"""Return the connectable associated with this SchemaItem."""
m = self.metadata
return m and m.bind or None
- bind = property(bind)
+ @property
def info(self):
try:
return self._info
except AttributeError:
self._info = {}
return self._info
- info = property(info)
def _get_table_key(name, schema):
@@ -291,9 +291,9 @@ class Table(SchemaItem, expression.TableClause):
def __post_init(self, *args, **kwargs):
self._init_items(*args)
+ @property
def key(self):
return _get_table_key(self.name, self.schema)
- key = property(key)
def _set_primary_key(self, pk):
if getattr(self, '_primary_key', None) in self.constraints: