funcool / funcool/clojure.jdbc

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

Đang mở
#40 0 bình luận 2 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Clojure
Star
106
Fork
23
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.