Get all fields from a Datomic entity

后端 未结 5 1786
灰色年华
灰色年华 2021-02-01 05:01

The \'Embedded\' section of the Datomic Queries and Rules document says:

Query languages like SQL are oriented around a client-server model where, in a

5条回答
  •  抹茶落季
    2021-02-01 05:28

    I haven't tested it, but if I remember correctly you can just put a variable as the attribute name

    (datomic.api/q '[:find ?key ?value
                 :where
                 [?e ?key ?value]]
               (db conn))
    

提交回复
热议问题