【发布时间】:2020-06-11 15:15:08
【问题描述】:
我在 postgres 中有 JSONB 归档标签,里面有列表。
e=# SELECT tags FROM call WHERE call.tags ? '1';
tags
------------
["1", "2"]
["1"]
(2 rows)
(对于这个查询,我在 postgres 中有索引)。
如何在sqlalchemy中表达相同的过滤条件?
【问题讨论】:
标签: python json postgresql sqlalchemy