Commit graph

315 commits

Author SHA1 Message Date
Sean Corfield
1bac4352e3
add records support #532
still need to add record/object special syntax

Signed-off-by: Sean Corfield <sean@corfield.org>
2024-11-23 11:59:12 -08:00
Sean Corfield
049fe5b68b
fix sqlize of maps in cljs
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-11-23 00:11:49 -08:00
Sean Corfield
b716d077c4
allow for inline hash maps (record syntax)
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-11-22 23:46:56 -08:00
Sean Corfield
129239a742
add erase from #532
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-11-22 23:14:02 -08:00
Sean Corfield
f4d212ae18
address #532 by supporting exclude/rename in alias position
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-11-22 22:54:42 -08:00
Pete Looney
b2c1ae0068 Fixes #553 by adding :not-between 2024-11-22 13:24:31 -06:00
Sean Corfield
21ce3a2242
fixes #551 by supporting multiple window clauses
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-11-18 15:02:28 -08:00
Sean Corfield
6fa606ffd5
address #532 by adding exclude, rename
and tests for nest_one, nest_many

Signed-off-by: Sean Corfield <sean@corfield.org>
2024-11-12 15:58:32 -08:00
Sean Corfield
643cea4930
address #549 by restoring bb support
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-10-29 08:49:19 -07:00
Sean Corfield
c6e6b54b8f
address #542 by adding support for with query tail options
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-10-12 12:42:49 -07:00
Sean Corfield
9dba3860e2
add rcf for #526
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-10-11 09:17:36 -07:00
Sean Corfield
a187ba98f1
improve performance of optional arguments
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-10-11 09:12:07 -07:00
Sean Corfield
203e923f99
address #548 by splitting format-var
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-10-11 09:01:19 -07:00
Sean Corfield
e2dc330cf9
fix some symbol/keyword resolution bugs
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-29 16:12:32 -07:00
Sean Corfield
de75ace988
bug fix symbol version of values row
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-29 12:01:01 -07:00
Sean Corfield
a27f72eab9
document values row (docs also test)
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-28 18:32:09 -07:00
Sean Corfield
7c0e25f253
guard against uncomparable values
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-28 16:23:44 -07:00
Sean Corfield
3ca197b45c
tentative impl of VALUES statement in MySQL #544
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-28 14:47:15 -07:00
Oleksandr Yakushev
4c75db9a95 Miscellaneous improvements 2024-09-27 23:09:14 +03:00
Oleksandr Yakushev
18a511b1c9 Add transducer arity to reduce-sql 2024-09-27 23:09:14 +03:00
Oleksandr Yakushev
15f73f9442 Replace first character checks with starts-with? 2024-09-27 23:09:14 +03:00
Oleksandr Yakushev
bfd7eb2141 Use non-capturing match group in alphanumeric regex
If the group is non-capturing, Clojure will not form match groups with
`re-groups`. We only use this regex as a predicate and don't need those.
2024-09-27 23:09:14 +03:00
Oleksandr Yakushev
803584dc7c More efficient check for suspicious entities
re-find sets up the regex machinery which is unnecessary here. str/includes? of
a single character is more efficient.
2024-09-27 23:09:14 +03:00
Oleksandr Yakushev
ac136dab08 Pass strings to strop
Converting Character->String involves additional allocations. Passing literal
strings avoids that.
2024-09-27 12:59:10 +03:00
Oleksandr Yakushev
846123c57a Introduce more efficient implementations of str and join 2024-09-26 23:15:15 +03:00
Sean Corfield
230cc467a1
fixes #538
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-22 17:15:47 -07:00
Sean Corfield
084c1ec5e5
fixes #543
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-22 17:11:01 -07:00
Sean Corfield
150fcda6d3
a simplification to prepare for #542
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-21 18:33:43 -07:00
Sean Corfield
bf34a23e68
fixes #537 by sanitizing metadata while expanding support to numbers
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-08-28 18:50:25 -07:00
Sean Corfield
a3ef215485
fixes #526 by using format-var in ddl destructuring instead of format-entity
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-06-24 20:30:15 -07:00
Sean Corfield
b07ac78d68
fixes #533 by adding mostly undocumented *escape-?* dynvar
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-06-13 09:28:06 -07:00
Sean Corfield
2c6bf85f7f
fixes #530 by supporting :using-gin in :create-index
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-06-12 22:53:40 -07:00
Sean Corfield
bab4ce4bd5
fix set-dialect! and update from values docs
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-06-09 11:44:21 -07:00
Sean Corfield
747383c847
fix #529 by changing how table name/expression is formatted in special join syntax
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-05-13 15:26:00 -07:00
Sean Corfield
5b04aa28c5
improve message for unlifted JSON usage
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-04-20 10:14:40 -07:00
Sean Corfield
d1e9617eae Revert "fix #528 by not ?-escaping operators"
This reverts commit eb680a204e.
2024-04-04 09:43:59 -07:00
Sean Corfield
eb680a204e
fix #528 by not ?-escaping operators
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-04-03 16:56:13 -07:00
Sean Corfield
f69ee7e8de
fix #527 by adding tests for composite and documenting its use in more detail
both from clause and composite special syntax have examples now

Signed-off-by: Sean Corfield <sean@corfield.org>
2024-03-29 15:15:12 -07:00
Sean Corfield
225c0db092
fix #495 by documenting formatv and adding tests
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-03-04 12:38:03 -08:00
Sean Corfield
51e64e1891
minor cleanup
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-03-03 21:56:16 -08:00
Sean Corfield
2f159ac912
reorder dialects
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-02-26 22:08:10 -08:00
Sean Corfield
2149a80852
fix #523
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-02-03 12:37:43 -08:00
Sean Corfield
52ed86284a
linting
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-01-14 17:09:46 -08:00
Sean Corfield
d64177bde5
fix MS SQL table hints in FROM clause (e.g. NOLOCK) #522
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-01-14 14:48:39 -08:00
Sean Corfield
35f4c674e9
omit for .cljs
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-01-06 22:39:25 -08:00
Sean Corfield
1291b328d0
two more possible solutions to #495
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-01-06 22:35:02 -08:00
Sean Corfield
9b9ec47bcf
fix #520
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-01-06 12:38:11 -08:00
Sean Corfield
2e34a9f4ea
fix #518
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-01-06 11:38:45 -08:00
Hannu Hartikainen
e70e3713fc Implement CREATE INDEX
Fixes #348.
2023-12-08 13:09:39 +02:00
Sean Corfield
1e44f82eb5 fix #515 by adding :quoted-always option 2023-12-03 16:50:16 -08:00