From a57c5a4fa2587c97127344eadc678edb1573413e Mon Sep 17 00:00:00 2001 From: nnichols Date: Fri, 20 Nov 2020 13:53:27 -0600 Subject: [PATCH 1/3] Require honey-sql-postgres.format into honeysql-postgres.helpers so consumers don't have to --- src/honeysql_postgres/helpers.cljc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/honeysql_postgres/helpers.cljc b/src/honeysql_postgres/helpers.cljc index f05753c..80fba56 100644 --- a/src/honeysql_postgres/helpers.cljc +++ b/src/honeysql_postgres/helpers.cljc @@ -1,6 +1,7 @@ (ns honeysql-postgres.helpers (:refer-clojure :exclude [partition-by]) - (:require [honeysql.helpers :as sqlh #?(:clj :refer :cljs :refer-macros) [defhelper]])) + (:require [honeysql-postgres.format :refer :all] + [honeysql.helpers :as sqlh #?(:clj :refer :cljs :refer-macros) [defhelper]])) ;; Extension of the honeysql helper funcitons for postgreSQL From c99828bf2297a9b1c622e58558fb33693ae75a05 Mon Sep 17 00:00:00 2001 From: nnichols Date: Fri, 20 Nov 2020 13:57:27 -0600 Subject: [PATCH 2/3] Update README --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index d5fad2a..c900da8 100644 --- a/README.md +++ b/README.md @@ -41,11 +41,8 @@ This library aims to extend the features of honeysql to support postgres specifi ``` ### REPL ```clj -; Note that `honeysql-postgres.format` and `honeysql-postgres.helpers` -; must be required into the project for the extended features to work. (require '[honeysql.core :as sql] '[honeysql.helpers :refer :all] - '[honeysql-postgres.format :refer :all] '[honeysql-postgres.helpers :as psqlh]) ``` From e3d0f898caf33d1b33e348afeccd635584bb9cee Mon Sep 17 00:00:00 2001 From: nnichols Date: Mon, 23 Nov 2020 07:56:45 -0600 Subject: [PATCH 3/3] Remove honeysql-postgres.format dependency in tests --- test/honeysql_postgres/postgres_test.cljc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/honeysql_postgres/postgres_test.cljc b/test/honeysql_postgres/postgres_test.cljc index 73d1a1a..92802ca 100644 --- a/test/honeysql_postgres/postgres_test.cljc +++ b/test/honeysql_postgres/postgres_test.cljc @@ -1,7 +1,6 @@ (ns honeysql-postgres.postgres-test (:refer-clojure :exclude [update partition-by]) - (:require [honeysql-postgres.format :as sqlpf] - [honeysql-postgres.helpers :as sqlph :refer [upsert on-conflict do-nothing on-conflict-constraint + (:require [honeysql-postgres.helpers :as sqlph :refer [upsert on-conflict do-nothing on-conflict-constraint returning do-update-set do-update-set! alter-table rename-column drop-column add-column partition-by insert-into-as