vendredi 2 avril 2021

python Sqlalchemy MetaData().reflect() with column attribute lowercase

is there a way to force column attribute name to lowercase using sqlalchemy reflection?

metadata = sa.MetaData()
metadata.reflect(session.conn)

AS IS:

metadata.tables['table'].columns.DATARIF

DESIRED:

metadata.tables['table'].columns.datarif




Aucun commentaire:

Enregistrer un commentaire