Re: [sqlalchemy] Getting default value from python object

2017-10-26 Thread Mike Bayer
On Wed, Oct 25, 2017 at 6:14 PM, sqlalchemy_mysql wrote: > I understand default value is used to emit Insert statement. Is there any > way to have default value is accessible via python object. See below example > class User(Base): > ... __tablename__ = 'users' > ... id = Column(Integ

[sqlalchemy] Getting default value from python object

2017-10-25 Thread sqlalchemy_mysql
I understand default value is used to emit Insert statement. Is there any way to have default value is accessible via python object. See below example >>> class User(Base): ... __tablename__ = 'users' ... id = Column(Integer, primary_key=True) ... name = Column(String) ... passwor