summaryrefslogtreecommitdiff
path: root/src/clojure_sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/clojure_sql')
-rw-r--r--src/clojure_sql/core.clj16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/clojure_sql/core.clj b/src/clojure_sql/core.clj
index 89d218e..5d871c7 100644
--- a/src/clojure_sql/core.clj
+++ b/src/clojure_sql/core.clj
@@ -343,22 +343,6 @@
(:joins right)))
(assoc :where (combine-wheres (:where left) (:where right))))))
-(-> (join (-> (table {:nodes :child})
- (project {:parent-id :pid, :name :name}))
- (-> (table {:nodes :parent})
- (project {:id :id}))
- :type :outer
- :on '(= :pid :id))
- println)
-
-(-> (join (-> (table :x)
- (project [:id :num :age]))
- (-> (table :y)
- (project [:id :num :b-age]))
- :type :left
- :on '(= :age :b-age))
- (project [:id :num]))
-
(defn select [query expression]
(let [table-name (if-not (:joins query)
(-> query :table first val))