Sean Corfield
1710e07231
fix #486 by support ansi/postgresl interval
2023-04-13 22:46:37 -07:00
Sean Corfield
2efe05def2
fix #484 by adding TABLE to TRUNCAT
2023-04-10 14:09:28 -07:00
Sean Corfield
8cbb7f3834
address #483 by adding tests & docs for :join
2023-04-07 11:42:39 -07:00
Sean Corfield
f7cf5718cc
fix #476 by restoring multi-argument :raw
2023-03-04 14:21:40 -08:00
Sean Corfield
3c65999ef1
fix #474 by documenting dot-selection
...
and adding support for two levels of field/column selection
2023-03-03 15:26:22 -08:00
Sean Corfield
c905853366
address #471 by switching prefix to :!
2023-03-02 09:56:30 -08:00
Sean Corfield
da150f03e3
address #474
2023-03-01 16:55:54 -08:00
Sean Corfield
0936095040
address #471
2023-02-28 17:38:13 -08:00
Sean Corfield
44b6de4139
Merge pull request #469 from p-himik/464-typed-arrays
...
Add optional type argument to the :array special
2023-02-27 16:14:54 -08:00
Eugene Pakhomov
0c7642a357
Add optional type argument to the :array special
2023-02-28 02:04:05 +02:00
Eugene Pakhomov
3fba12fbcc
Allow single kw in :order-by and other clauses
2023-02-26 14:20:09 +02:00
Sean Corfield
de0adf56ef
fixes #461 ; prep for 2.4.980
2023-02-15 22:10:45 -08:00
Sean Corfield
762252b660
fixes #459 by making all operators variadic
...
except for := and the various :<> variants
some operators only make sense in binary usage and will produce invalid
SQL if used in a non-binary manner
2023-02-11 13:35:55 -08:00
Sean Corfield
213c152fdb
fixes #456
2023-02-01 22:20:14 -08:00
Sean Corfield
6bdc262e7c
close #452 - support :replace-into in all dialects
2023-01-14 15:27:42 -08:00
Sean Corfield
ca953e3c42
add test for #455 (which passes)
2023-01-13 13:01:35 -08:00
Sean Corfield
d0ae02a6ef
more tests
2022-12-17 00:15:11 -08:00
Sean Corfield
4ea630ed90
basic testing for numbered params
2022-12-16 23:20:17 -08:00
Sean Corfield
562b20634a
fix #434 by special-casing array
2022-11-17 22:39:48 -08:00
Sean Corfield
e8ea9283cc
fix Support full TRUNCATE syntax (cascade, identity) #438
2022-11-04 23:40:30 -07:00
Ike Mawira
73d36ab2b5
Update docs and tests for WITH clause
2022-09-23 16:54:30 +03:00
Sean Corfield
2f1d3ae870
fixes #421 replace into
2022-09-03 21:34:09 -07:00
Sean Corfield
9569b19a34
address #425 for map inserts
2022-09-02 22:35:17 -07:00
Sean Corfield
3073d28525
address #423 by adding support for default
...
needs documentation
2022-09-01 22:54:00 -07:00
Sean Corfield
e204f3b45e
add security notes about quoting
...
also consistently use SQL entity names instead of identifiers so the
documentation is consistent in terminology.
2022-08-23 17:18:00 -07:00
Sean Corfield
a879a2d8a1
auto-quote unusual entities by default
2022-08-23 15:41:38 -07:00
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
e6654f7a22
check for empty where clauses fix #413
2022-08-06 21:11:08 -07:00
Sean Corfield
d065a04e18
placeholder (should :array unwrap params?)
2022-05-20 10:34:10 -07:00
Sean Corfield
5fe73c75bc
Support custom dialects fixes #401 (add docs/tests)
2022-05-01 17:34:31 -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
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
f711b934fa
fix #387 properly
2022-02-22 21:27:10 -08:00
Sean Corfield
803ff41dc0
Dehyphen improvements fixes #387
2022-02-21 19:09:49 -08:00
Sean Corfield
4bf76920ef
fix #385 by quoting inlined uuids
2022-02-09 10:20:36 -08:00
Sean Corfield
c7c634d694
change :' to use format-entity #352
2022-02-02 23:51:01 -08:00
Sean Corfield
1f2773bd16
address #352 by treating :'foo literally
2022-02-02 22:04:44 -08:00
Sean Corfield
139de6f56c
fix #380 by accounting for vars
2022-01-21 13:05:15 -08:00
Sean Corfield
826407e9db
first pass of caching formatter
...
needs more documentation.
Initial results suggest a speedup for simple queries of 2-3x.
Complex queries can see up to 20x speedup.
2022-01-08 00:41:21 -08:00
Sean Corfield
2670abc75f
fix #377 by adopting @corasaurus-hex function as map=
2022-01-07 23:16:56 -08:00
Sean Corfield
8979e938f3
fixes #374
2021-12-23 13:32:47 -08:00
Sean Corfield
6aee04e25c
fixes #365
2021-10-03 22:18:12 -07:00
Sean Corfield
dae09ff601
fixes #363 by improving inlining capability
2021-09-25 17:06:48 -07:00
Sean Corfield
9ece8972b5
fixes #344 by special-casing MySQL SET
2021-08-12 18:26:39 -07:00
Sean Corfield
50bbfef07f
Fixes #338 properly by making offset/fetch smarter
2021-07-17 17:57:17 -07:00
Sean Corfield
7e84b58463
fixes #338 by adding ONLY to :fetch
2021-07-17 13:32:43 -07:00
Sean Corfield
a393cd89e2
fixes #337 by using clojure.test for cljs
2021-07-15 19:26:59 -07:00
Sean Corfield
fe4be6cca6
Make test cljs-compatible
2021-05-10 22:46:36 -07:00
Sean Corfield
9e0b31bbd9
Fixes #325 Fixes #326 adds tests/docs
2021-05-10 22:44:57 -07:00
Neil McCalum
9c38554154
format with opts, hyphen to under in function names, improve and relocate tests
2021-05-11 01:07:34 +12:00