A decorator version of [sqlalchemy.orm#synonym()]. The function being
decoratred is the 'instrument', otherwise passes its arguments through
- to synonym().
+ to synonym()::
@synonym_for('col')
@property
"""Decorator, allow a Python @property to be used in query criteria.
A decorator front end to [sqlalchemy.orm#comparable_property()], passes
- throgh the comparator_factory and the function being decorated.
+ throgh the comparator_factory and the function being decorated::
@comparable_using(MyComparatorType)
@property
SQL constructs like a managed attribute. comparable_property wraps a
descriptor with a proxy that directs operator overrides such as ==
(__eq__) to the supplied comparator but proxies everything else through
- to the original descriptor.
+ to the original descriptor::
class MyClass(object):
@property
for this property.
descriptor
-
Optional when used in a ``properties={}`` declaration. The Python
descriptor or property to layer comparison behavior on top of.