@@ -23,42 +23,44 @@ Currently honeysql-postgres supports the following postgres specific clauses:
2323 - rename column
2424- insert-into-as
2525- pattern matching (ILIKE and NOT ILIKE)
26+ - except (and except-all)
2627
2728## Index
2829
29- - [ Usage] ( https://github.com/nilenso/honeysql-postgres#usage )
30- - [ Leiningen] ( https://github.com/nilenso/honeysql-postgres#leiningen )
31- - [ Maven] ( https://github.com/nilenso/honeysql-postgres#maven )
32- - [ repl] ( https://github.com/nilenso/honeysql-postgres#repl )
33- - [ Breaking Change] ( https://github.com/nilenso/honeysql-postgres#breaking-change )
34- - [ upsert] ( https://github.com/nilenso/honeysql-postgres#upsert )
35- - [ insert into with alias] ( https://github.com/nilenso/honeysql-postgres#insert-into-with-alias )
36- - [ over] ( https://github.com/nilenso/honeysql-postgres#over )
37- - [ create view] ( https://github.com/nilenso/honeysql-postgres#create-view )
38- - [ create table] ( https://github.com/nilenso/honeysql-postgres#create-table )
39- - [ drop table] ( https://github.com/nilenso/honeysql-postgres#drop-table )
40- - [ alter table] ( https://github.com/nilenso/honeysql-postgres#alter-table )
41- - [ pattern matching] ( https://github.com/nilenso/honeysql-postgres#pattern-matching )
42- - [ SQL functions] ( https://github.com/nilenso/honeysql-postgres#sql-functions )
43- - [ License] ( https://github.com/nilenso/honeysql-postgres#license )
30+ - [ Usage] ( #usage )
31+ - [ Leiningen] ( #leiningen )
32+ - [ Maven] ( #maven )
33+ - [ repl] ( #repl )
34+ - [ Breaking Change] ( #breaking-change )
35+ - [ upsert] ( #upsert )
36+ - [ insert into with alias] ( #insert-into-with-alias )
37+ - [ over] ( #over )
38+ - [ create view] ( #create-view )
39+ - [ create table] ( #create-table )
40+ - [ drop table] ( #drop-table )
41+ - [ alter table] ( #alter-table )
42+ - [ pattern matching] ( #pattern-matching )
43+ - [ except] ( #except )
44+ - [ SQL functions] ( #sql-functions )
45+ - [ License] ( #license )
4446
4547## Usage
4648
4749### Leiningen
4850``` clj
49- [nilenso/honeysql-postgres " 0.2.5 " ]
51+ [nilenso/honeysql-postgres " 0.2.6 " ]
5052```
5153### Maven
5254``` xml
5355<dependency >
5456 <groupId >nilenso</groupId >
5557 <artifactId >honeysql-postgres</artifactId >
56- <version >0.2.5 </version >
58+ <version >0.2.6 </version >
5759</dependency >
5860```
5961### repl
6062``` clj
61- ; Note that `honeysql-postgres.format` and `honeysql-postgres.helpers`
63+ ; Note that `honeysql-postgres.format` and `honeysql-postgres.helpers`
6264; must be required into the project for the extended features to work.
6365(require '[honeysql.core :as sql]
6466 '[honeysql.helpers :refer :all ]
@@ -181,6 +183,17 @@ The `ilike` and `not-ilike` operators can be used to query data using a pattern
181183 sql/format)
182184=> [" SELECT * FROM products WHERE name NOT ILIKE ?" " %name%" ]
183185```
186+ ### except
187+
188+ ``` clj
189+
190+ (sql/format
191+ {:except
192+ [{:select [:ip ]}
193+ {:select [:ip ] :from [:ip_location ]}]})
194+ => [" SELECT ip EXCEPT SELECT ip FROM ip_location" ]
195+ ```
196+ ` except-all ` works the same way as ` except ` .
184197
185198### SQL functions
186199The following are the SQL functions added in ` honeysql-postgres `
0 commit comments