Skip to content

Instantly share code, notes, and snippets.

@juergenhoetzel
Created August 22, 2012 12:13
Show Gist options
  • Save juergenhoetzel/3424969 to your computer and use it in GitHub Desktop.
Save juergenhoetzel/3424969 to your computer and use it in GitHub Desktop.
get-user
(defn get-user [handle]
(sql/with-connection db
(sql/with-query-results rs ["select * from users where handle=?" handle] (first rs))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment