Re: How to handle `default` column values before/after commit()

2019-05-06 Thread Mike Bayer
On Mon, May 6, 2019 at 12:06 AM wrote: > > Suppose the following code: > > # We define a base for all DB objects, currently empty. > class _Base: > pass > > Base = declarative_base(cls=_Base, metadata=MetaData(naming_convention=…)) > > # Then the objects. > class User(Base): >

Re: How to handle `default` column values before/after commit()

2019-05-06 Thread jens . troeger
Sorry, I meant flush in the above post and not commit! -- You received this message because you are subscribed to the Google Groups "sqlalchemy-alembic" group. To unsubscribe from this group and

How to handle `default` column values before/after commit()

2019-05-05 Thread jens . troeger
Suppose the following code: # We define a base for all DB objects, currently empty. class _Base: pass Base = declarative_base(cls=_Base, metadata=MetaData(naming_convention=…)) # Then the objects. class User(Base): __tablename__ = "users" id = Column(UUID(), default=uuid.uuid4,