Skip to content

Instantly share code, notes, and snippets.

@atroche
Created August 21, 2015 06:09
Show Gist options
  • Save atroche/8f095775bd295a5a7f8c to your computer and use it in GitHub Desktop.
Save atroche/8f095775bd295a5a7f8c to your computer and use it in GitHub Desktop.
(d/q '[:find ?e :where [?e :employee/name]]
@conn)
=> #{[17592186045449] [3] [17592186045447] [17592186045443] [17592186045445]}
(d/q '[:find ?e
:where [?e :employee/name] [?e :employee/new]]
@conn)
=> #{[3]}
(d/q '[:find ?e
:where [?e :employee/name] (not [?e :employee/new])]
@conn)
ExceptionInfo #<Error: compare on non-nil objects of different types> clojure.core/ex-info (core.clj:4593)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment