def attrs_sqlalchemy(maybe_cls=None):
def wrap(cls):<EOL><INDENT>warnings.warn(UserWarning('<STR_LIT>'))<EOL>these = {<EOL>name: attr.ib()<EOL>for name in inspect(cls).columns.keys()<EOL>}<EOL>return attr.s(cls, these=these, init=False)<EOL><DEDENT>if maybe_cls is None:<EOL><INDENT>return wrap<EOL><DEDENT>else:<EOL><INDENT>return wrap(maybe_cls)<EOL><DEDENT>
A class decorator that adds ``__repr__``, ``__eq__``, ``__cmp__``, and
``__hash__`` methods according to the fields defined on the SQLAlchemy
model class.