active-group / active-group/sqlosure
Extensibility/Flexibility
- 主要语言
- 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 还没有评估数据。