funcool / funcool/clojure.jdbc

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

Open
#40 0 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
Clojure
Stars
106
Forks
23
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/funcool/clojure.jdbc/blob/775cb9ecc68e6f1898943044ecc226920244d057/src/jdbc/resultset.clj#L32) docs):

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.