Commit graph

1173 commits

Author SHA1 Message Date
Dave Della Costa
6d0ff344b9 Adds basic tests for PR #34, common table expressions 2015-03-09 13:21:41 +09:00
Michael Blume
c6b621583e Merge pull request #43 from MichaelBlume/clause-order
make clause-order extensible
2015-03-06 23:02:12 -08:00
Mike Blume
05e74d9f30 make clause order extensible
(by using atom registry)
2015-03-06 10:48:49 -08:00
Dave Della Costa
0f24df5ee0 supports extended INSERT INTO...SELECT syntax allowing specifying columns to insert into explicitly 2015-03-05 00:20:42 +09:00
Mike Blume
17145ea549 Merge remote-tracking branch 'justindell/master' into HEAD 2015-03-03 20:34:16 -08:00
Justin Dell
7fb92e0d93 fix merge-full-join 2015-03-03 22:25:50 -06:00
Michael Blume
8e7615ee4d Merge pull request #47 from MichaelBlume/testing
Testing
2015-03-03 20:23:47 -08:00
Michael Blume
b621273fd2 Merge pull request #49 from MichaelBlume/expected-first
in unit test, put expected value first
2015-03-03 20:23:31 -08:00
Michael Blume
12f73bfa5a Merge pull request #40 from senior/add-cast-support
Added support for casts of the form CAST(foo AS type)
2015-03-03 20:18:21 -08:00
Mike Blume
a931e375f7 in unit test, put expected value first
is assumes that the first argument to = is a fixture, and the second is
the result of a computation, when it prints Expected: and Actual:
2015-03-03 19:55:08 -08:00
Michael Blume
f63de95e14 Merge pull request #46 from MichaelBlume/upgrade-clojure
upgrade clojure dependency
2015-03-03 16:18:57 -08:00
Mike Blume
c8f647ea26 simple format tests 2015-03-03 16:16:41 -08:00
Mike Blume
cbb71c3db9 test apply too 2015-03-03 16:16:41 -08:00
Mike Blume
78ac2e65fd upgrade clojure dependency 2015-03-03 16:15:37 -08:00
Alan Thompson
34bbe0b4ab Update README.md
Put in automatic lein coordinates from clojars
2015-03-03 14:39:54 -08:00
Michael Blume
a96b14267e Merge pull request #38 from MichaelBlume/extend-to-object
extend ToSql to cover Object
2015-03-03 13:42:50 -08:00
Michael Blume
c63fa73d41 Merge pull request #41 from MichaelBlume/avoid-collision
avoid name collision with clojure.core/update
2015-03-03 13:29:40 -08:00
Mike Blume
e494315fa0 add travis config 2015-03-03 12:01:11 -08:00
Mike Blume
2cafa5940e avoid collision with update in tests as well 2015-03-02 15:08:16 -08:00
Mike Blume
e06ddbdeb0 extend ToSql to cover Object
This commit avoids extraneous calls to satisfies?. Satisfies? is very
slow compared to protocol method dispatch, because method dispatch is
cached and satisfies? is not. Instead of using satisfies? to check for
cases where we need to fall back to a default behavior, we extend ToSql
to java.lang.Object, providing a default behavior directly.

This commit boosts honeysql's speed substantially. In my benchmarks,
80-90% of the time spent calling sql/format was spent in satisfies?.
2015-02-25 16:21:22 -08:00
Mike Blume
c736565bd5 avoid name collision with clojure.core/update
present in 1.7, currently in alpha
2015-02-25 16:15:53 -08:00
Ryan Senior
dd9647ee3e Added support for casts of the form CAST(foo AS type) 2015-02-20 10:05:09 -06:00
Isaac Cambron
25ba952a3e support postgres-native parameters 2015-01-06 19:58:56 -05:00
Justin Dell
f8a5886124 Add full join 2014-11-05 15:04:21 -06:00
Howard M. Lewis Ship
0c3f3d0403 Fix example of insert-into w/ nested query
The previous example generated SQL that could not actually execute.
2014-10-22 10:01:46 -07:00
Howard M. Lewis Ship
1157887edd Merge pull request #21 from gfredericks/arglist-metadata
The defhelper macro should expose the arglist as the standard :arglist metadata
2014-10-07 18:12:50 -07:00
Howard M. Lewis Ship
0aeb9990da Update README.md 2014-10-07 15:08:57 -07:00
Howard M. Lewis Ship
f9ec9001e0 Extend the examples for insert-into 2014-10-07 15:07:39 -07:00
Howard M. Lewis Ship
68d8091f8a Add a file to track changes 2014-10-07 14:46:52 -07:00
Howard M. Lewis Ship
6622c49b47 Merge pull request #22 from stathissideris/master
Just some updates to readme to reflect that insert, update and delete are implemented
2014-10-07 14:43:19 -07:00
Howard M. Lewis Ship
12190fe322 Merge pull request #24 from cloojure/patch-1
Provide improved example of using a keyword to specify a SQL function
2014-10-07 14:42:22 -07:00
Alan Thompson
54e77ec4c9 Update README.md
Hi - I just started using honeysql and wanted to update the docs for a confusing area.
Alan
2014-07-24 22:52:08 -07:00
Stathis Sideris
e283c1437e Better examples 2014-06-21 15:14:46 +01:00
Stathis Sideris
3abe6a104f Updated readme to reflect the fact that insert, update, delete are
already implemented.
2014-06-21 13:23:02 +01:00
Gary Fredericks
edd268ae7d Maintain the arglist metadata for helpers
This should hopefully make documentation via clojure.repl/doc and
others a bit more readable.
2014-05-01 17:26:33 +00:00
Justin Kramer
88bc556578 0.4.3 2013-12-13 12:32:31 -05:00
Justin Kramer
c8fbc16ec3 option for format to return names of params (with more dynamic vars - boo) 2013-12-13 12:32:08 -05:00
Justin Kramer
5aa351ab48 Merge pull request #9 from doffltmiw/master
add support for insert, update and delete queries
2013-12-13 08:23:00 -08:00
alice
e7fefe86a6 add columns, merge-columns and query-values clauses 2013-12-12 11:35:38 +09:00
Justin Kramer
79553697ef Merge pull request #8 from grammati/oracle
Oracle support.
2013-09-06 15:36:27 -07:00
Chris Perkins
a4e9f0ff46 Oracle support.
Omit AS in JOIN, FROM, etc. because Oracle does not support it.
2013-09-06 16:29:41 -06:00
alice
806b9bafd6 fix values clause to take multiple sets of values 2013-09-07 01:19:13 +09:00
alice
6f2ef8f6c3 add support for insert, update and delete queries 2013-09-06 23:18:05 +09:00
Justin Kramer
730706fca8 0.4.2 2013-08-08 09:04:19 -04:00
Justin Kramer
03fe1650ee improve identifier quoting 2013-08-07 21:56:31 -04:00
Justin Kramer
9d46b48366 special case identifier quoting for * 2013-08-07 18:22:44 -04:00
Justin Kramer
3b07644b8a 0.4.2-SNAPSHOT 2013-08-07 18:22:24 -04:00
Justin Kramer
bdfd34a35c 0.4.1 2013-08-07 14:34:40 -04:00
Justin Kramer
cff7abad1f accept explicit parameters in quote-identifiers 2013-08-07 10:30:15 -04:00
Justin Kramer
35fbbabffa 0.5.0-SNAPSHOT 2013-08-07 10:29:34 -04:00