--- /dev/null
+.. change::
+ :tags: bug, examples
+
+ Fixed the performance example scripts in examples/performance to mostly
+ work with the Oracle database, by adding the :class:`.Identity` construct
+ to all the tables and allowing primary generation to occur on this backend.
+ A few of the "raw DBAPI" cases still are not compatible with Oracle.
+
"""
from sqlalchemy import Column
from sqlalchemy import create_engine
+from sqlalchemy import Identity
from sqlalchemy import Integer
from sqlalchemy import String
from sqlalchemy.ext.declarative import declarative_base
class Customer(Base):
__tablename__ = "customer"
- id = Column(Integer, primary_key=True)
+ id = Column(Integer, Identity(), primary_key=True)
name = Column(String(255))
description = Column(String(255))
"""
from sqlalchemy import Column
from sqlalchemy import create_engine
+from sqlalchemy import Identity
from sqlalchemy import Integer
from sqlalchemy import String
from sqlalchemy.ext.declarative import declarative_base
class Customer(Base):
__tablename__ = "customer"
- id = Column(Integer, primary_key=True)
+ id = Column(Integer, Identity(), primary_key=True)
name = Column(String(255))
description = Column(String(255))
from sqlalchemy import bindparam
from sqlalchemy import Column
from sqlalchemy import create_engine
+from sqlalchemy import Identity
from sqlalchemy import Integer
from sqlalchemy import select
from sqlalchemy import String
class Customer(Base):
__tablename__ = "customer"
- id = Column(Integer, primary_key=True)
+ id = Column(Integer, Identity(), primary_key=True)
name = Column(String(255))
description = Column(String(255))
q = Column(Integer)
from sqlalchemy import bindparam
from sqlalchemy import Column
from sqlalchemy import create_engine
+from sqlalchemy import Identity
from sqlalchemy import Integer
from sqlalchemy import pool
from sqlalchemy import String
class Customer(Base):
__tablename__ = "customer"
- id = Column(Integer, primary_key=True)
+ id = Column(Integer, Identity(), primary_key=True)
name = Column(String(255))
description = Column(String(255))