diff options
author | Carlo Zancanaro <carlo@clearboxsystems.com.au> | 2013-11-12 16:58:44 +1100 |
---|---|---|
committer | Carlo Zancanaro <carlo@clearboxsystems.com.au> | 2013-11-12 16:58:44 +1100 |
commit | fe513564989d9151a79d5494f2958ae190c20d02 (patch) | |
tree | e2a802702a1fb19f4dfe7220bc9f09a3710f239b /README.md | |
parent | 1685984030a9d1cd588196d9e2cf648e57034f72 (diff) |
Change the query executor model: now it's query local and the interface is managed by a protocol.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -229,7 +229,21 @@ be the return value of the associated query function call (`deref`, (q/group [:age] {:name :name})) ;=> Exception! Expr is not a function application - could not possible be an aggregate -* **Breaking:** Remove `having`, use `select` instead now +* **Breaking:** remove `having`, use `select` instead now + +* **Breaking:** make query executors query local, rather than + global. This changed two things in particular: + + * `table` now takes a second, optional, argument representing a + query executor + + * `set-query-executor!` is no longer present, use + `set-default-query-executor!` instead (which will be used + whenever `table`'s optional argument is omitted) + + As a result of this, the `use-jdbc!` function has been + removed. To connect to a database via jdbc use this: + `(set-default-query-executor (clojure-sql.jdbc/jdbc-executor "connection-string"))` * `sort` can now sort on arbitrary expressions, not just fields |