-
-
Save anonymous/243d4dc223878317a4ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[clojure.java.jdbc :as sql]) | |
(defn db [] (sql/with-connection "postgres://localhost/tanga_dev" partial)) | |
(db | |
(:username | |
(first | |
(sql/with-query-results results ["select * from users"] (into [] results))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment