Commit graph

1173 commits

Author SHA1 Message Date
Andrea Richiardi
9fd33284e7 Add package.json for npm deployment 2018-02-20 11:07:32 -08:00
Michael Blume
36a40bc67c
Merge pull request #205 from visibletrap/remove-nil-pred-from-and
Remove nil predicate from :and
2018-02-19 21:39:09 -08:00
Nuttanart Pornprasitsakul
3206b099df Remove nil predicate from :and 2018-02-18 13:27:07 +07:00
Michael Blume
caf904a40d
Merge pull request #204 from visibletrap/master
Remove nil argument to where
2018-02-15 22:51:21 -08:00
Nuttanart Pornprasitsakul
15af00e0de Remove nil argument to where 2018-02-15 22:44:13 +07:00
Michael Blume
3588768970
Merge pull request #195 from madvas/master
Fix #193
2018-02-10 23:50:22 -08:00
Michael Blume
8ad38d28af
Merge pull request #196 from emidln/emidln/insert-into-drop-parens
Avoid wrapping QUERY with parens while formatting INSERT INTO ... QUERY
2018-02-10 23:48:01 -08:00
Michael Blume
baee219c51
Merge pull request #199 from xiongtx/198-value-context
[198] Limit value context to sequences in value positions
2018-02-10 23:47:00 -08:00
Vincent
8a6ecd94aa adds support for JOIN ... USING (...) syntax (#188) 2018-01-16 03:13:14 +01:00
Tianxiang Xiong
ccff2d2c23 Limit value context to sequences in value positions
Fix #198
2018-01-09 23:42:53 -08:00
Daniel Compton
dfcaf1c8e9
Add Deps Versions dependency status 2017-12-18 21:35:48 +13:00
Brandon Adams
c7df208e3e Avoid wrapping QUERY with parens while formatting INSERT INTO ... QUERY
This also adds a test using honeysql.format/format for an existing
format-clause test case for :insert-into which encodes the previously
failing behavior.
2017-12-12 16:09:31 -06:00
madvas
54b620d0f9 Fix #193 2017-11-29 19:41:35 +01:00
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