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 ManyToOne column, and I'd like to know which rows have a value defined.
In SQLAlchemy, I'd do Model.query.filter(Model.many21 != None), but ROM implemented what in SQLAlchemy would be filter_by using keyword arguments.
I tried doing: Model.query.filter(Model.many21=(0,None)) which gave the right results.
If this type of query is possible, I'd suggest a constant in rom module like "rom.NotNull" or "rom.NotNone" or "rom.IS_DEFINED" and documenting clearly.
The text was updated successfully, but these errors were encountered:
I have a
ManyToOne
column, and I'd like to know which rows have a value defined.In SQLAlchemy, I'd do
Model.query.filter(Model.many21 != None)
, but ROM implemented what in SQLAlchemy would befilter_by
using keyword arguments.I tried doing:
Model.query.filter(Model.many21=(0,None))
which gave the right results.If this type of query is possible, I'd suggest a constant in rom module like "rom.NotNull" or "rom.NotNone" or "rom.IS_DEFINED" and documenting clearly.
The text was updated successfully, but these errors were encountered: