Re: [sqlalchemy] Dynamic sequence name

2018-04-25 Thread Mike Bayer
On Wed, Apr 25, 2018 at 3:04 PM, Stanislav Lobanov wrote: > Hello! > > I have a base model class with "id" field, which is primary key and also not > nullable. It does not have autoincrement feature, but uses custom sequence > manually to assign it's value. > > There are

[sqlalchemy] Dynamic sequence name

2018-04-25 Thread Stanislav Lobanov
Hello! I have a base model class with "id" field, which is primary key and also not nullable. It does not have autoincrement feature, but uses custom sequence manually to assign it's value. There are standard on table / sequence naming: class Base: id = Column(Integer, primary_key=True,