Skip to content

Instantly share code, notes, and snippets.

@bonkydog
Created January 17, 2014 18:27
Show Gist options
  • Select an option

  • Save bonkydog/8478795 to your computer and use it in GitHub Desktop.

Select an option

Save bonkydog/8478795 to your computer and use it in GitHub Desktop.
Query for Datomic attribute types. Shows use of anonymous function literal in query.
d.q('[:find ?e ?ident ?doc
:where
[?e :db/doc ?doc]
[?e :db/ident ?ident]
[(#(clojure.core/re-find #"db.type" (str %)) ?ident)]
]')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment