Re: [sqlalchemy] Oracle Bulk inserts returning array of IDs possible?

2019-05-06 Thread Mike Bayer
On Mon, May 6, 2019 at 5:12 PM Chris Stephens wrote: > > Is is possible to implement the following behavior in SQLAlchemy against an > Oracle database? (Bulk inserts returning PK IDs generated by trigger/sequence > on PK column in database) The code you have already does what you need and is

[sqlalchemy] Oracle Bulk inserts returning array of IDs possible?

2019-05-06 Thread Chris Stephens
Is is possible to implement the following behavior in SQLAlchemy against an Oracle database? (Bulk inserts returning PK IDs generated by trigger/sequence on PK column in database) #database ddl DROP TABLE INS_RET_TEST; CREATE TABLE INS_RET_TEST (ID NUMBER NOT NULL ENABLE,

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