Skip to content

Instantly share code, notes, and snippets.

@shaunxcode
Created October 10, 2012 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaunxcode/3869104 to your computer and use it in GitHub Desktop.
Save shaunxcode/3869104 to your computer and use it in GitHub Desktop.
fetch all attributes for a namespace in datomic
[:find ?id ?name ?attr
:in $ ?in-ns
:where [?id :db/ident ?name]
[(name ?name) ?attr]
[(namespace ?name) ?ns]
[(= ?ns ?in-ns)]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment