Advertisement
Zak

Untitled

Zak
Jun 16th, 2011
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  (-> messages
  2.       (q/join users (q/where (= :users.id :sender)))
  3.       (q/project [[:users.id :as :sender_id] [:users.realname :as :sender_name]])
  4.       (q/join users (q/where (= :users.id :recipient)))
  5.       (q/project [[:users.id :as :recipient_id] [:users.realname :as :sender_name]])))
  6.  
  7. ; I want to alias the users table so this can work
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement