Skip to content

Commit c81cc52

Browse files
authored
Require honey-sql-postgres.format into honeysql-postgres.helpers so consumers don't have to (#51)
* Require honey-sql-postgres.format into honeysql-postgres.helpers so consumers don't have to * Update README * Remove honeysql-postgres.format dependency in tests
1 parent b667b8b commit c81cc52

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,8 @@ This library aims to extend the features of honeysql to support postgres specifi
4141
```
4242
### REPL
4343
```clj
44-
; Note that `honeysql-postgres.format` and `honeysql-postgres.helpers`
45-
; must be required into the project for the extended features to work.
4644
(require '[honeysql.core :as sql]
4745
'[honeysql.helpers :refer :all]
48-
'[honeysql-postgres.format :refer :all]
4946
'[honeysql-postgres.helpers :as psqlh])
5047
```
5148

src/honeysql_postgres/helpers.cljc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
(ns honeysql-postgres.helpers
22
(:refer-clojure :exclude [partition-by])
3-
(:require [honeysql.helpers :as sqlh #?(:clj :refer :cljs :refer-macros) [defhelper]]))
3+
(:require [honeysql-postgres.format :refer :all]
4+
[honeysql.helpers :as sqlh #?(:clj :refer :cljs :refer-macros) [defhelper]]))
45

56
;; Extension of the honeysql helper funcitons for postgreSQL
67

test/honeysql_postgres/postgres_test.cljc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
(ns honeysql-postgres.postgres-test
22
(:refer-clojure :exclude [update partition-by])
3-
(:require [honeysql-postgres.format :as sqlpf]
4-
[honeysql-postgres.helpers :as sqlph :refer [upsert on-conflict do-nothing on-conflict-constraint
3+
(:require [honeysql-postgres.helpers :as sqlph :refer [upsert on-conflict do-nothing on-conflict-constraint
54
returning do-update-set do-update-set!
65
alter-table rename-column drop-column
76
add-column partition-by insert-into-as

0 commit comments

Comments
 (0)