diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-10-25 19:44:21 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-10-25 19:44:21 +0000 |
| commit | 76e8175971a5fa5abb7f7e1f85ccd3068f04aff5 (patch) | |
| tree | a1284c646dbfe8fce1980be126205c7ee80eae3a /lib/sqlalchemy/sql/compiler.py | |
| parent | 25e5157785ee9dd7a3bbb606b1f7642342936d18 (diff) | |
| download | sqlalchemy-76e8175971a5fa5abb7f7e1f85ccd3068f04aff5.tar.gz | |
- moved _FigureVisitName into visitiors.VisitorType, added Visitor base class to reduce dependencies
- implemented _generative decorator for select/update/insert/delete constructs
- other minutiae
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
| -rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index b4069e6fd..63557f24b 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -20,7 +20,7 @@ is otherwise internal to SQLAlchemy. import string, re from sqlalchemy import schema, engine, util, exc -from sqlalchemy.sql import operators, functions, util as sql_util +from sqlalchemy.sql import operators, functions, util as sql_util, visitors from sqlalchemy.sql import expression as sql RESERVED_WORDS = set([ @@ -110,10 +110,9 @@ FUNCTIONS = { } -class _CompileLabel(object): +class _CompileLabel(visitors.Visitable): """lightweight label object which acts as an expression._Label.""" - __metaclass__ = sql._FigureVisitName __visit_name__ = 'label' __slots__ = 'element', 'name' |
