clojure.jdbc icon indicating copy to clipboard operation
clojure.jdbc copied to clipboard

Docs: consider mentioning :identifiers and :as-rows? options

Open metametadata opened this issue 8 years ago • 0 comments

The official guide could be enhanced with some mentions of :identifiers and :as-rows?.

Specifically, I recall I spent some time before I figured out how to "kebab-case-keyword"-ize the fetched results as there's nothing about it directly in jdbc.core/fetch docstring (they are mentioned in jdbc.resultset docs):

(ns foo.bar
  (:require [camel-snake-kebab.core :as csk]
                 [jdbc.core :as jdbc]))
...
(jdbc/fetch conn sql {:identifiers csk/->kebab-case-keyword})

metametadata avatar Nov 17 '17 15:11 metametadata