Get all fields from a Datomic entity

后端 未结 5 1787
灰色年华
灰色年华 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条回答
  •  -上瘾入骨i
    2021-02-01 05:11

    datomic.api/entity provides such functionality.

    It just has the gotcha that the returned map has a custom representation which hides all fields but :db/id. One can access those fields, but printing them requires merging the map into a regular Clojure map.

提交回复
热议问题