print-update-counts

clojure.contrib.sql.internal

  • (print-update-counts stream exception)
Prints the update counts from a BatchUpdateException to stream

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/sql/internal.clj:129 top

(defn print-update-counts
  "Prints the update counts from a BatchUpdateException to stream"
  [stream exception]
  (.println stream "Update counts:")
  (doseq [[index count] (indexed (.getUpdateCounts exception))]
    (.println stream (format " Statement %d: %s"
                             index
                             (get special-counts count count)))))
Vars in clojure.contrib.sql.internal/print-update-counts: count defn doseq format get
Used in 0 other vars

Comments top

No comments for print-update-counts. Log in to add a comment.