Skip to content

Instantly share code, notes, and snippets.

@fabioyamate
Created April 30, 2015 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fabioyamate/a14e0b8b6b314997f8ec to your computer and use it in GitHub Desktop.
Save fabioyamate/a14e0b8b6b314997f8ec to your computer and use it in GitHub Desktop.
Datomic Queries cheat-sheet
;;; Replace entity with the schema
{:find [...]
:in [...]
:where [...]}
;;; eav
[?e ?a ?v ?tx]
;;; txInstant
[?tx :db/txInstant ?time]
;;; retract
[:db/retract [:entity/id id] attribute value]
;;; identity values for enums
[?status :db/ident ?status-name]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment