Skip to content

Instantly share code, notes, and snippets.

Created October 2, 2011 05:24
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 anonymous/1257094 to your computer and use it in GitHub Desktop.
Save anonymous/1257094 to your computer and use it in GitHub Desktop.
relation example
(defentity user
(has-many address)
(has-one blah {:include :always
:pk "blah_woot"}))
(select user
(where {:id 3}))
(select-first user
(with blah)
(where {:email "chris@test.com"})
(order :created :desc)
(order :timestamp :desc))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment