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
Actually the only way I found is to use raw_sql like in req3:
withdb_session:
# doesn't work: TypeError# req1 = select(p for p in Process if p.state == ProcState.running)# doesn't work: TypeError# req2 = select(p for p in Process if getattr(p, 'state') == ProcState.running)# works!req3=select(pforpinProcessiform.raw_sql('p.state == "running"'))
req3[:].show(500)
Is there any possibility to use select using req1 syntax?
The text was updated successfully, but these errors were encountered:
I would at least like Enum support (hopefully this can get completed and merged) because the reason I found this issue was to try and select based on an enum.
It's easy to add a new type to entity attributes with custom Converter but I would like to be able to filter query in
select
using this new type.Here is a small example:
Actually the only way I found is to use
raw_sql
like inreq3
:Is there any possibility to use
select
usingreq1
syntax?The text was updated successfully, but these errors were encountered: