SQLAlchemy temporary table with Declarative Base
Is it possible to use __table_args__
? See http://docs.sqlalchemy.org/en/latest/orm/extensions/declarative.html#table-configuration
class Tempo(Base):
"""
Class for temporary table used to process data coming from xlsx
@param Base Declarative Base
"""
# TODO: make it completely temporary
__tablename__ = 'tempo'
__table_args__ = {'prefixes': ['TEMPORARY']}
drw = alc.Column(alc.String)
date = alc.Column(alc.Date)
check_number = alc.Column(alc.Integer)