Ops, my mistake. Second one should be:
(defn db-read []
(sql/with-connection db
(sql/with-results res
"SELECT
users.id,
users.name
FROM
users
INNER JOIN
roles
ON
user.id = roles.user_id
ORDER BY
users.id;"
(doseq [rec res]
(println rec)))))
Sorry about that,
-ck
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---