clojure.jdbc
clojure.jdbc copied to clipboard
Docs: consider mentioning :identifiers and :as-rows? options
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})