Created
April 30, 2015 16:32
-
-
Save fabioyamate/a14e0b8b6b314997f8ec to your computer and use it in GitHub Desktop.
Datomic Queries cheat-sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; 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