oracle - Clojure: how do I print the results of an SQL query? -
let's want execute next queries: (select * table) (select count(*) table)
http://clojuredocs.org/clojure_contrib/clojure.contrib.sql/with-query-results
how set these vector can print out results? give specific examples please.
the clojure.contrib.sql library deprecated , documentation linked outdated current version of library, called clojure.java.jdbc. updated documentation library can found here:
java.jdbc documentation auto-generated reference documentation the github repository java.jdbc, showing current dependency information to reply specific question, want utilize query function , you'll find detailed documentation on running queries on community maintained site. query fully-realized sequence of maps, solves problem think you're running (that with-query-result returns lazy sequence , if don't realize within macro call, exception operating on closed connection).
the query function can process result set in more flexible ways via :as-arrays?, :row-fn, , :result-set-fn create lot easier work old library mentioned.
oracle clojure
No comments:
Post a Comment