Can I have SQLAlchemy return a default value if the column does not exist in the DB Table

Viewed 423

I need SQLAlchemy to return a default value if the Column in the Database Table does not exist. This can be easily done if the value of the column is NULL. But my case needs to cover a default value if the database table does not have the column.

Is this possible in SQLAlchemy? If not possible, is there anyway around that?

0 Answers
Related