You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a table that I'm trying to adapt from sqlalchemy in which a column name is a Python keyword (open). In my sqlalchemy table, I use open_ = Column("open", Float) so as to avoid overriding the keyword.
In my orm.Model, I'm unable to find a way to have an equivalent mapping of the mymodel.open_ object.
I tried open_ = orm.Float(name="open") but that isn't a supported kwarg.
open_ = orm.Float(title="open") doesn't work, resulting in asyncpg.exceptions.UndefinedColumnError: column tiingo_daily_historical.open_
Am I overlooking a way to do this?
Many thanks in advance!
The text was updated successfully, but these errors were encountered:
I have a table that I'm trying to adapt from sqlalchemy in which a column name is a Python keyword (
open
). In my sqlalchemy table, I useopen_ = Column("open", Float)
so as to avoid overriding the keyword.In my
orm.Model
, I'm unable to find a way to have an equivalent mapping of themymodel.open_
object.I tried
open_ = orm.Float(name="open")
but that isn't a supported kwarg.open_ = orm.Float(title="open")
doesn't work, resulting inasyncpg.exceptions.UndefinedColumnError: column tiingo_daily_historical.open_
Am I overlooking a way to do this?
Many thanks in advance!
The text was updated successfully, but these errors were encountered: