active-group / active-group/sqlosure

Extensibility/Flexibility

未關閉
#8 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Clojure
星號
7
分支
0
PR 合併指標
30 天內沒有已合併 PR

描述

Currently, there are many SQL statements that a user might want to use, that are not expressible in Sclojure (e.g. CTEs in Postgres https://www.postgresql.org/docs/9.1/queries-with.html).
Of course the library cannot support everything, esp. if it is outside of relational algebra, but when writing an application and one has already written many parts of the queries in sqlosure, then if one reaches a point where a (small) part needs something special, then nothing of the previous parts can be reused.
Therefore, I think that an extension mechanism would be very helpful.

As quick scratch, a way to embed a raw sql query could be added for that:

```
(embed-sql sql-string columns) ;; + query args maybe
```

What might be equally flexible would be a way to add new Sqlosure expressions as a user, by having an api to define their translation to SQL.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。