diff --git a/src/honey/sql/helpers.cljc b/src/honey/sql/helpers.cljc index ade62b0..2922b34 100644 --- a/src/honey/sql/helpers.cljc +++ b/src/honey/sql/helpers.cljc @@ -314,14 +314,23 @@ (generic :with-columns args))) (defn create-view - "Accepts a single view name to create. + " Accepts a single view name to create. - (-> (create-view :cities) - (select :*) (from :city))" +(-> (create-view :cities) + (select :*) (from :city)) " {:arglists '([view])} [& args] (generic :create-view args)) +(defn create-or-replace-view + "Accepts a single view name to create. + + (-> (create-or-replace-view :cities) + (select :*) (from :city))" + {:arglists '([view])} + [& args] + (generic :create-or-replace-view args)) + (defn create-materialized-view "Accepts a single view name to create.