funcool / clojure.jdbc

JDBC library for Clojure
http://funcool.github.io/clojure.jdbc/latest/
Apache License 2.0
105 stars 26 forks source link

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

Open metametadata opened 6 years ago

metametadata commented 6 years ago

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})