Is there a way in the standard SQLA dialect support to set the
starting value of an autoincrement field in the SQLA table definition?
I can't see anything in the docs or code, but something like this is
what I'm thinking:
empnum = Column(sqla.Integer,
primary_key = True,
autoincrement = True,
autoincrementstart = 10000)
which would make the first record have an empnum of 10000 instead of
1.
I'm learning that the autoincrement support across databases is a bit
odd (what's up with Oracle??) and I expect if I want to do this I'll
need to do some manual work, but figured I'd ask first.
If no way to set the start at table definition time, what about a
clean way to change the current value just after definition?
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.