funcool / funcool/clojure.jdbc

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

未关闭
#40 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Clojure
星标
106
派生
23
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。