mirror / sqlalchemy (http://svn.sqlalchemy.org/sqlalchemy/trunk/)
Mirror of the SQLAlchemy trunk.
Clone this repository (size: 20.0 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/mirror/sqlalchemy/
| commit 4807: | d43eda416f7d |
| parent 4806: | 8d7b5af3af85 |
| branch: | default |
add a note about type for ColumnElement
Changed (Δ322 bytes):
raw changeset »
lib/sqlalchemy/ext/compiler.py (8 lines added, 0 lines removed)
Up to file-list lib/sqlalchemy/ext/compiler.py:
| … | … | @@ -131,6 +131,14 @@ A big part of using the compiler extensi |
131 |
131 |
"column-like" elements. Anything that you'd place in the "columns" clause of |
132 |
132 |
a SELECT statement (as well as order by and group by) can derive from this - |
133 |
133 |
the object will automatically have Python "comparison" behavior. |
134 |
||
135 |
:class:`~sqlalchemy.sql.expression.ColumnElement` classes want to have a |
|
136 |
``type`` member which is expression's return type. This can be established |
|
137 |
at the instance level in the constructor, or at the class level if its |
|
138 |
generally constant:: |
|
139 |
||
140 |
class timestamp(ColumnElement): |
|
141 |
type = TIMESTAMP() |
|
134 |
142 |
|
135 |
143 |
* :class:`~sqlalchemy.sql.expression.FunctionElement` - This is a hybrid of a |
136 |
144 |
``ColumnElement`` and a "from clause" like object, and represents a SQL |
