- changed status to resolved
column reflect event
Issue #2095
resolved
diff -r d5d1e2df67048b77ef41626940189116ba98b2f0 lib/sqlalchemy/events.py
--- a/lib/sqlalchemy/events.py Mon Mar 14 11:20:01 2011 -0400
+++ b/lib/sqlalchemy/events.py Mon Mar 14 15:02:52 2011 -0400
@@ -159,6 +159,23 @@
"""
+ def column_reflect(self, table, column_info):
+ """Called for each unit of 'column info' retrieved when
+ a :class:`.Table` is being reflected.
+
+ The dictionary of column information as returned by the
+ dialect is passed, and can be modified. The dictionary
+ is that returned in each element of the list returned
+ by :meth:`.reflection.Inspector.get_columns`.
+
+ The event is called before any action is taken against
+ this dictionary, and the contents can be modified.
+ The :class:`.Column` specific arguments `info`, `key`,
+ and `quote` can also be added to the dictionary and
+ will be passed to the constructor of :class:`.Column`.
+
+
+ """
class SchemaEventTarget(object):
"""Base class for elements that are the targets of :class:`.DDLEvents` events.
Comments (2)
-
reporter -
reporter - removed milestone
Removing milestone: 0.7.0 (automated comment)
- Log in to comment
diff:@9ccfdaf1ae5e3b4bc5d8630f4a6d6e16c7db650c:0505949e9d2