Reputation: 167
When using sqlalchemy with postgresql, I have the following table and data:
id | data
----+----------
1 | {}
2 | {"a": 1}
(2 rows)
How do I find row(s) that does not have a key. e.g. "a" or data["a"]?
Give me all objects that does not have the key a.
id | data
----+----------
1 | {}
(1 row)
self.session.query(Json_test).filter(???)
Upvotes: 7
Views: 6647