Commit graph

309 commits

Author SHA1 Message Date
Michael Blume
faba02f2b4
Merge pull request #186 from arichiardi/parameterizer-none
Add :parameterizer :none option
2017-11-15 21:23:11 -08:00
Michael Blume
a8629773f9
Merge pull request #189 from kenfehling/patch-1
Add :intersect to default-clause-priorities
2017-11-15 21:21:24 -08:00
Ken Fehling
7f64e26984
Add :intersect to default-clause-priorities 2017-11-15 18:59:54 -05:00
Michael Blume
203b23e586
Merge pull request #187 from arichiardi/travis-tach
Add tach testing to Travis
2017-11-11 14:15:46 -08:00
Andrea Richiardi
34d54e4fff Add tach testing to Travis 2017-11-07 14:21:52 -08:00
Michael Blume
c839565cfe
Merge pull request #185 from arichiardi/self-host-w-macrovich
Add ClojureScript self-host support
2017-11-06 21:57:33 -08:00
Andrea Richiardi
6cf89436d4 Add :parameterizer :none option
Sometimes you want to completely skip using parameters.

Postgres, in particular, complains with cryptic "syntax error at or near "$1"
whenever query parameters cannot be used for the query. An example would be
CREATE TABLE queries where the only parameters are the VARCHAR size.

This patch adds a :none option to :parameterizer which completely skips
parameter filling (and numbering), returning the SQL string only.
2017-11-06 17:13:02 -08:00
Andrea Richiardi
65037939b2 [Fix #167] Add ClojureScript self-host support
This patch uses the wonderful cgrand/macrovich for supporting both JVM and
self-host ClojureScript. The library avoids destructive code changes, no
namespaces were moved.

The patch also adds a runner for self-host tests by adding the lein-tach
plugin. Tests can be launched with:

  lein tach lumo (or planck)

See the lein-tach README for details.
2017-11-01 10:13:47 -07:00
Colin Yates
b105b2f2e5 Added doc to use custom datatypes re: #177 (#179) 2017-08-26 11:39:04 -07:00
Vincent Storme
36239778ef Update copywrite year to current
... it's almost 2018
2017-08-26 11:27:03 -07:00
Michael Blume
af3c5e1691 Cut 0.9.1 release 2017-08-25 09:13:33 -07:00
Michael Blume
7256f7afba Revert "Merge pull request #169"
Revert the reversion, keep the behavior from 0.9.0, vectors will be
primarily used for function calls.
2017-08-25 09:12:53 -07:00
Michael Blume
7c373b5362 update CHANGES 2017-08-25 09:11:00 -07:00
Michael Blume
a9dffec632 update jdbc example 2017-08-20 22:44:06 -07:00
Michael Blume
a707222d53 Run all code samples from README as tests
using `lein test-readme` alias
2017-07-19 10:28:51 -07:00
Michael Blume
e213364012 Update README to better reflect reality 2017-07-18 22:47:08 -07:00
Michael Blume
3eaf5edbc0 Merge pull request #169 from MichaelBlume/fix-tuples
Revert #149 and restore tuple behavior
2017-07-18 13:47:56 -07:00
Michael Blume
9ab7d3a2f8 restore function call test using sql/call 2017-07-18 13:45:12 -07:00
Michael Blume
d99efb8606 allow inlining values
Most of the time we want to parameterize numbers, but sometimes we don't

Fixes #171
2017-07-18 12:50:27 -07:00
Michael Blume
a0b73cdcc6 Test that tuples work correctly
Thanks to @jetmind who gave this test in #168
2017-07-17 20:49:35 -07:00
Michael Blume
62c4760c6a Revert "Merge pull request #149"
Should #168
2017-07-17 20:49:35 -07:00
Michael Blume
942756d2b3 Specify lein version 2.7.1 in travis config
Apparently travis defaults to 2.5.1 and 2.5.1 doesn't know how to find our
tests.

Our tests all still run, so that's good.
2017-07-17 20:48:57 -07:00
Michael Blume
bc3394e6dd call out breaking changes 2017-07-08 20:07:46 -07:00
Michael Blume
f300420d77 Cut 0.9.0 release. 2017-06-27 20:30:18 -07:00
Michael Blume
cda2f38cfa update CHANGES 2017-06-27 20:24:14 -07:00
Brandon Adams
f94e343f31 Reprioritize WITH wrt UNION and UNION ALL
WITH needs to come before clauses that are part of a UNION
or UNION ALL.[1][2][3][4]

[1] "A CTE must be followed by a single SELECT, INSERT, UPDATE, or DELETE
statement that references some or all the CTE columns."
https://docs.microsoft.com/en-us/sql/t-sql/queries/with-common-table-expression-transact-sql

[2] "the WITH clause itself is attached to a primary statement that can
also be a SELECT, INSERT, UPDATE, or DELETE"
https://www.postgresql.org/docs/9.6/static/queries-with.html

[3] https://mariadb.com/kb/en/mariadb/with/

[4] "All common table expressions (ordinary and recursive) are created
by prepending a WITH clause in front of a SELECT, INSERT, DELETE, or
UPDATE statement."
https://sqlite.org/lang_with.html

Added a test case demonstrating the expected behavior for each of
UNION and UNION ALL.
2017-06-27 20:01:52 -07:00
Philip Jagielski
16251bf30d Fix changelog formatting
0.6.2 rendered as one jumbled together paragraph.
2017-06-15 09:09:38 -07:00
Michael Blume
94e128976a run eastwood on CI 2017-05-22 08:54:11 -07:00
Michael Blume
db32c8a654 match close parens in README 2017-05-20 21:47:05 -07:00
Michael Blume
2088a198e9 clarify in README that honeysql just generates sql
and has nothing to do with your db connection

Fix #148?
2017-05-20 21:45:20 -07:00
Michael Blume
63d04cf8fc Cut 0.9.0 beta 2 2017-05-19 23:03:42 -07:00
Michael Blume
ef90bc4094 update changelog 2017-05-19 23:02:16 -07:00
Eli Naeher
00316fc6bd Add helpers for :with and :with-recursive clauses 2017-05-19 22:59:21 -07:00
Michael Blume
a61e65b40c Cut 0.9.0 beta 1. 2017-05-10 14:00:00 -07:00
Michael Blume
3154caa6e7 upgrade cljs dependencies 2017-05-10 13:40:06 -07:00
Michael Blume
4d88e60dcb update CHANGES 2017-05-10 13:34:47 -07:00
Michael Blume
f22cae3278 Require that defhelper arglist has two elements
one for the map and one for varargs

Add & to metadata arglists, make them correct
2017-05-10 09:46:54 -07:00
Michael Blume
e0072efbdc Merge pull request #132, allow namespaced keywords 2017-04-05 21:11:45 -07:00
Tom Connors
bdfee0883e Fix using maps with different key orders in :values 2017-03-24 00:18:04 -07:00
Michael Blume
7b61250b2d Merge pull request #149 from zeekat/master
Fix operator/function calls in value positions
2017-03-10 19:39:40 -08:00
Joost Diepenmaat
f8b913d667 Fix operators in value positions 2017-02-17 10:21:23 +01:00
Joost Diepenmaat
5e7e224df4 Show problem with operators in value positions 2017-02-17 10:20:40 +01:00
Michael Blume
4b79536a75 Begin 0.8.3 release cycle. 2016-12-31 23:16:06 -08:00
Michael Blume
05fae8cb98 Cut 0.8.2 release. 2016-12-31 23:14:33 -08:00
Michael Blume
9edf99e136 update changelog for subclause change 2016-12-31 23:13:32 -08:00
Michael Blume
d07a1a3764 Merge pull request #143 from rnewman/patch-1
Update README example to match #142.
2016-11-07 14:13:10 -08:00
Richard Newman
29f3cd1099 Update README example to match #142. 2016-11-06 12:29:37 -08:00
Michael Blume
160e2821b8 Merge pull request #142 from rnewman/rnewman/union-paren
Don't parenthesize the subclauses of a UNION, UNION ALL, or INTERSECT clause.
2016-11-06 00:57:49 -07:00
Richard Newman
a0d0880ac6 Add an additional test for phrasing complex UNION queries. 2016-10-12 09:26:51 -07:00
Richard Newman
9dd87d14a0 Don't parenthesize the subclauses of a UNION, UNION ALL, or INTERSECT clause. Fixes #141. 2016-10-12 08:50:54 -07:00