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
Sean Corfield
9da2ccc812
fix #513 with :ignored-metadata option
2023-12-02 11:47:43 -08:00
Sean Corfield
f46dbc5ca7
#515 : exclude some entities from smart quoting
...
this is a partial solution, intended to catch (and quote) things like
`0abc` while not changing the behavior for `80` or `2023_11_20`
2023-11-20 11:43:33 -08:00
Sean Corfield
002285a5af
revert quoting changes
2023-11-16 22:36:21 -08:00
Sean Corfield
bcbaae5ef5
#514 relax rules again
2023-11-16 22:32:40 -08:00
Sean Corfield
4a7d46dd1f
partial #514 solution
...
improve default quoting strategy (all numeric with _ is OK, leading
alpha with optional alphanumeric/_ is OK, entity with leading digit then
alphanumeric needs quoting).
plus *always-quote* dynamic var that can be bound to regex.
2023-11-16 22:30:35 -08:00
Sean Corfield
7d05220cfa
partial #513 by dissoc'ing common metadata
2023-11-16 22:13:42 -08:00
Sean Corfield
737baa9d0e
fix #512 by supporting array subquery
...
also adds metadata support for select to produce as struct (or distinct)
2023-10-28 13:39:26 -07:00
Sean Corfield
e36ad64aa6
#510 document nrql dialect
2023-10-21 16:17:28 -07:00