From fe513564989d9151a79d5494f2958ae190c20d02 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Tue, 12 Nov 2013 16:58:44 +1100 Subject: Change the query executor model: now it's query local and the interface is managed by a protocol. --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 97f1afb..650c9fe 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.2.3