Commit graph

1167 commits

Author SHA1 Message Date
Rob Hanlon
204f6fa72a
Support materialization control in WITH
Adds an optional third value to `with` vectors, which can be the
following:

* `:materialized` -> SQL is `WITH cte AS MATERIALIZED (...)`
* `:not-materialized` -> SQL is `WITH cte AS NOT MATERIALIZED (...)`
* omitted or anything else -> SQL is `WITH cte AS (...)`

Note that materialization control is not available on WITH RECURSIVE
CTEs, so `format-with` was modified to take a third argument that
returns the `AS ...` separator, which is constantly `"AS"` for WITH
RECURSIVE, and obeys the aforementioned rules for non-recursive CTEs.

Resolves #392.
2022-08-16 16:01:52 -07:00
Sean Corfield
d31600d2c0 fix string for cljs too 2022-08-06 22:29:17 -07:00
Sean Corfield
c10a97e1ec use default instead of js/Object
This shuts the cljs compiler up
2022-08-06 22:20:29 -07:00
Sean Corfield
2cba8bc3d7 fix cljs for #419 2022-08-06 22:02:21 -07:00
Sean Corfield
99e955f420 fix #419 by adding InlineValue protocol 2022-08-06 21:49:49 -07:00
Sean Corfield
e6654f7a22 check for empty where clauses fix #413 2022-08-06 21:11:08 -07:00
Sean Corfield
061edc42f7 prep for 2.3.911 2022-07-29 18:27:02 -07:00
Sean Corfield
f0ada59fff fix #406 2022-07-29 15:41:04 -07:00
Sean Corfield
5be96ba6e3 document #416 #417 2022-07-28 20:37:34 -07:00
Sean Corfield
43096f72e6
Merge pull request #417 from corasaurus-hex/issue-416
Change public-fns-have-clauses assertion to allow custom clauses
2022-07-28 20:42:22 -07:00
Cora Sutton
79c005b765 Change public-fns-have-clauses assertion to allow custom clauses
Fixes #416
2022-07-28 22:38:01 -05:00
Sean Corfield
5c6ce8a379 update change log 2022-07-28 19:59:31 -07:00
Sean Corfield
5f54fab989 document Differences between IN queries between v1 and v2 #418 2022-07-28 19:56:52 -07:00
Sean Corfield
8e72cb8f2c fixes #414 2022-07-15 11:13:15 -07:00
Sean Corfield
16ce2e8b2d fix #412 (update change log to reflect it) 2022-07-05 22:43:05 -07:00
Sean Corfield
3def127276 address #412 by completing options docs 2022-07-05 22:41:25 -07:00
Sean Corfield
ab0a3eebae the first part of #412 2022-06-27 21:17:54 -07:00
Sean Corfield
91e75a7edf Merge branch 'develop' of github.com:seancorfield/honeysql into develop 2022-05-20 10:46:07 -07:00
Sean Corfield
fb1decbd1e fixes #409 by making the check conditional 2022-05-20 10:46:04 -07:00
Sean Corfield
d065a04e18 placeholder (should :array unwrap params?) 2022-05-20 10:34:10 -07:00
Sean Corfield
2e9b395b31 remove old calva workaround 2022-05-19 20:29:32 -07:00
Sean Corfield
5fe73c75bc Support custom dialects fixes #401 (add docs/tests) 2022-05-01 17:34:31 -07:00
Sean Corfield
afa5c6af99 bump version to 2.3.x for next release 2022-04-30 22:04:50 -07:00
Sean Corfield
8c8b05e67f Support custom dialects: addresses #401
Still needs tests and documentation.
2022-04-30 22:03:36 -07:00
Sean Corfield
70e8afc273 use foo.a instead of confusing f.a 2022-04-23 16:24:04 -07:00
Sean Corfield
d179004180 clarify change for #396 2022-04-23 16:15:02 -07:00
Sean Corfield
796c734cba prep for 2.2.891 release 2022-04-23 16:11:52 -07:00
Sean Corfield
5e847cde0e only throw for named param #396 2022-04-23 16:03:21 -07:00
Sean Corfield
270b9439c8 attempting to cache SQL that contains IN () will throw fixes #396 2022-04-23 15:54:24 -07:00
Sean Corfield
03275b1035 add caveat for caching about #396 2022-04-23 15:45:35 -07:00
Sean Corfield
fdc70c67a9 fix typo in example 2022-04-23 15:45:10 -07:00
Sean Corfield
e45ea8586e Add PostgreSQL JSON / regex operators fixes #398 2022-04-23 15:40:47 -07:00
Sean Corfield
124fac6f28 :insert-into should support abitrary functions for table fixes #402 2022-04-23 15:12:55 -07:00
Sean Corfield
13a8aa11b2 skip the example that throws 2022-04-23 14:11:19 -07:00
Sean Corfield
7f8b7a79b1 addresses #403: improve error message; improve docs 2022-04-23 13:40:34 -07:00
Sean Corfield
9e72587bf3 Document special array constructor for PostgreSQL fixes #404 2022-04-23 13:21:07 -07:00
Sean Corfield
083833cd8b clean up CI names 2022-04-05 14:33:13 -07:00
Sean Corfield
a2e02c8a03 fix #394 by escaping quote chars
This matches the HoneySQL 1.x behavior now.
2022-03-31 17:34:51 -07:00
Sean Corfield
314f497417 fix #400 by adding :table clause 2022-03-26 16:58:28 -07:00
Sean Corfield
2e7da61f56 #398 add names for all ops; hash is mnemonic for # 2022-03-26 14:20:58 -07:00
Sean Corfield
ab7c235329 fix #399 by correcting docs and tests 2022-03-26 13:45:43 -07:00
Sean Corfield
c4efcc0cad #398 || is variadic (by default) 2022-03-26 08:33:05 -07:00
Sean Corfield
17319cdd26 #398 treat -> as variadic 2022-03-26 08:28:24 -07:00
Sean Corfield
af69f12630 address #398 (needs docs) 2022-03-25 21:48:00 -07:00
Sean Corfield
ccaf29292a CI change for Clojure 1.11 release 2022-03-25 21:47:30 -07:00
Sean Corfield
fe17b51e9a
Merge pull request #393 from frwdrik/patch-1
Fix docstring of add-clause-before
2022-03-19 22:28:36 +00:00
Fredrik Vaeng Røtnes
ca0feb57e5
Fix docstring of add-clause-before
The result of adding a clause to a list in which the it already appears, is not to remove it from the list, but to move it to the end.
2022-03-19 22:16:20 +00:00
Sean Corfield
4823ec8694 update build-clj 2022-03-06 12:09:46 -08:00
Sean Corfield
f711b934fa fix #387 properly 2022-02-22 21:27:10 -08:00
Sean Corfield
beedc35a22 prep for 2.2.868 2022-02-21 20:28:07 -08:00