Commit graph

1199 commits

Author SHA1 Message Date
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
ba78dc2d27
prep for 2.6.1196
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-10-06 11:05:13 -07:00
Sean Corfield
b55eb23edd
fixes #547 by adding examples
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-10-06 11:00:20 -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
3d48ecac37
change log updated
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-28 18:34:20 -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
Sean Corfield
48edb03b32
note pr #546 in changelog
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-27 14:13:52 -07:00
Sean Corfield
40d9aee6e6
Merge pull request #546 from alexander-yakushev/misc-opt
Hodgepodge of optimizations
2024-09-27 14:13:31 -07:00
Oleksandr Yakushev
2fb4df6bdd Remove misplaced type hint 2024-09-27 23:09:14 +03: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
Sean Corfield
f31533d8d6
note #545 in changelog
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-26 14:22:23 -07:00
Sean Corfield
8c93e287ff
Merge pull request #545 from alexander-yakushev/perf-opt
Introduce more efficient implementations of str and join
2024-09-26 14:17:12 -07:00
Oleksandr Yakushev
846123c57a Introduce more efficient implementations of str and join 2024-09-26 23:15:15 +03:00
Sean Corfield
694233e2f0
fixes #539
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-22 18:19:39 -07:00
Sean Corfield
34b58e41c4
refer to examples below for set-dialect! #539
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-22 18:13:43 -07:00
Sean Corfield
a6a1272d17
missed a mod reference #538
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-22 18:09:09 -07:00
Sean Corfield
60c1549168
dev/test/ci deps updates
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-22 18:02:38 -07:00
Sean Corfield
c3f10c507d
fixes #541
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-22 17:33:47 -07: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
dd9547bbc1
another backtick escape attempt #539
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-21 18:15:31 -07:00
Sean Corfield
acb5112f03
another strop cleanup #539
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-21 18:13:29 -07:00
Sean Corfield
53a6ea0f8a Merge branch 'develop' of github.com:seancorfield/honeysql into develop 2024-09-21 18:12:14 -07:00
Sean Corfield
4efa9a38ef
address #539 by improving getting started
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-21 18:12:10 -07:00
Sean Corfield
de6fe93b75
Merge pull request #540 from jodleif/develop
additional docs for cte
2024-09-12 11:29:09 -07:00
Jo Øivind Gjernes
37fe8b21bc
additional docs for cte
a small example was added to illustrate how to specify a Common Table Expression (CTE) as materialized or not materialized.
2024-09-12 09:05:39 +02:00
Sean Corfield
7fceefbe5c
update test deps to 1.12.0
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-09-05 22:43:45 -07:00
Sean Corfield
434d3877d7
prep for 2.6.1161
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-08-29 10:39:41 -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
ae62d2b474
clojure 1.11.4 & 1.12.0 rc 1
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-08-03 12:33:16 -07:00
Sean Corfield
bb72885027
update clojure test version
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-07-23 22:24:37 -07:00
Sean Corfield
d24ee428f3
fixes #536
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-07-23 22:22:25 -07:00
Sean Corfield
cbb3b3e90b
Merge pull request #535 from bhlieberman/develop
Update pg_ops.cljc
2024-07-14 11:42:45 -07:00
Ben Lieberman
b531747918
Update pg_ops.cljc
Add docstring info to @@ operator pertaining to its text search usage
2024-07-14 09:43:28 -06:00
Sean Corfield
669fee5bc8
Merge pull request #534 from holyjak/patch-2
Update pg-ops/- docstring wrt array input
2024-07-04 09:23:16 -07:00
Jakub Holý
e7ef940e24
Update pg-ops/- docstring wrt array input
The `-` operator also works for arrays:

```sql
select '{"a":1,"b":2,"c":3}' - array['a','b'];
-- => {c:3}
select '["a","b","c"]'::jsonb - array['a','b']
-- => ["c"]
```
2024-07-04 17:13:24 +02:00
Sean Corfield
4e124091b4
auto-start repl
Signed-off-by: Sean Corfield <sean@corfield.org>
2024-06-28 11:11:51 -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