以下代码有效,它检索一组所有帖子 ID 及其标题 -
(xt/q db '{:find [post title]
:where [[post :post? true]
[post :header title]]})
但是,我忘记了数据库中这些帖子对象的其他属性是什么。我想知道它们是什么。我怎样才能找到他们?
有没有办法做相当于的事情? -
select *
from some_table
where post = true
检查和手动编辑 xtdb 数据库的最佳方法是什么?
我自己从未使用过 XTDB,但试试这个:
(xt/q db '{:find [(pull post *)]
:where [[post :post? true]]})