On Sep 12, 2012, at 11:54 PM, Yap Sok Ann wrote:
> This is semi-related to the latest post from Kent. I just noticed that I have
> been abusing the "autoflush on begin" behavior (by the _take_snapshot()
> method in orm/session.py) to create additional instances within the
> after_flush Session
On Sep 14, 2012, at 4:55 AM, Ranjith Ramachandra wrote:
> I am using sqlalchemy as ORM
>
> I have a class like this:
>
> class Token(Base):
> __tablename__ = 'token_table'
> id = Column(Integer, primary_key=True, autoincrement=True)
> token = Column(Unicode(300), unique=True)
>
I am using sqlalchemy as ORM
I have a class like this:
class Token(Base):
__tablename__ = 'token_table'
id = Column(Integer, primary_key=True, autoincrement=True)
token = Column(Unicode(300), unique=True)
last_accessed = Column(DateTime,
onupdate=datet