3 ms·
One can also write the sqla query as: Resource.query.filter( Resources.data["lastname"].astext=="Doe" ) Personally I find the "__" convension
by oneweekwonder 8y ago
One can also write the sqla query as:
Resource.query.filter(
Resources.data["lastname"].astext=="Doe"
)
Personally I find the "__" convension strange and not sure that it would be obvious to new comers that you are accessing a key in the data column.