summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-11-25 01:18:19 +1100
committerCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-11-25 01:18:19 +1100
commitfe1a2f5ef652cb943be14982f31b3ad236d00629 (patch)
tree7fb837d7485f029b9e0c8376ac43ad743f5a2a19
parent2746c6b08b878190ee7c54a7414bf444c660ff1e (diff)
Remove a stupid testing thing, update the README a touch
-rw-r--r--README.md3
-rw-r--r--src/clojure_sql/core.clj6
2 files changed, 3 insertions, 6 deletions
diff --git a/README.md b/README.md
index 2eed039..046b534 100644
--- a/README.md
+++ b/README.md
@@ -261,6 +261,9 @@ be the return value of the associated query function call (`deref`,
deref)
;; => {:user {:id 5 :username "username"}}
+* Provide `distinct` to make a query only return unique rows
+
+
### 0.1.0
* Initial release, so everything's new
diff --git a/src/clojure_sql/core.clj b/src/clojure_sql/core.clj
index 613adf6..67b2c4d 100644
--- a/src/clojure_sql/core.clj
+++ b/src/clojure_sql/core.clj
@@ -64,10 +64,4 @@
(assert (:executor query) "Cannot execute a query without a query executor")
(q/delete! (:executor query) query))
-(join (-> (table :x)
- (project [:a :b]))
- (-> (table :x)
- (project [:a :b])
- distinct))
-