class MyMode(Base):
__tablename__ = 'mymodel'
__table_args__ = ({
'sqlite_autoincrement' : True,
})

id = Column(Integer, primary_key=True)

def __init__(self, id):
self.id = id

How can I set the initial value for the id column?

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sqlalchemy/-/j2DcE3bYYIIJ.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to