summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/schema.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-08-16 22:20:53 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-08-16 22:20:53 -0400
commit20fa7fe2b85d356e3da08191f01d7528ded42033 (patch)
treedd98bed523dbad242ac1db901cee5ccda541a83c /lib/sqlalchemy/schema.py
parent0aff01bdfd7b9428334e862d5ff141b07298e75a (diff)
downloadsqlalchemy-20fa7fe2b85d356e3da08191f01d7528ded42033.tar.gz
- modernize most of the postgis example. would like to do [ticket:1534] also.
- we don't have coverage for type-wide instrumentation events, the listener was broke. could break again too.
Diffstat (limited to 'lib/sqlalchemy/schema.py')
-rw-r--r--lib/sqlalchemy/schema.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py
index e79e12f7b..f2ca45894 100644
--- a/lib/sqlalchemy/schema.py
+++ b/lib/sqlalchemy/schema.py
@@ -408,6 +408,11 @@ class Table(SchemaItem, expression.TableClause):
self, include_columns, exclude_columns
)
+ @util.memoized_property
+ def info(self):
+ """Dictionary provided for storage of additional information."""
+ return {}
+
@property
def _sorted_constraints(self):
"""Return the set of constraints as a list, sorted by creation order."""
@@ -965,6 +970,11 @@ class Column(SchemaItem, expression.ColumnClause):
else:
return self.description
+ @util.memoized_property
+ def info(self):
+ """Dictionary provided for storage of additional information."""
+ return {}
+
def references(self, column):
"""Return True if this Column references the given column via foreign
key."""