There are two ways to resolve this.
- When defining the table you would need to specify an alias with the key parameter
t_table_name = Table(
'tablename',
metadata,
Column('SQL Column', Integer, key='sql_column')
)
- Define the ORM class as
class Employee(Base):
emp_name = Column("employee name", String)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…