funcool / funcool/clojure.jdbc

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

Aperta
#40 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Clojure
Stelle
106
Fork
23
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.