Commit graph

309 commits

Author SHA1 Message Date
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
Justin Kramer
b1413128f3 0.4.0 2013-08-06 16:37:37 -04:00
Justin Kramer
ed5dab3d4f readme tweak 2013-08-06 16:36:56 -04:00
Justin Kramer
2b22ca3eb1 fix readme 2013-08-06 16:32:07 -04:00
Justin Kramer
7d4cc64ecb :distinct-on helper fn; fixes #1 2013-08-06 16:29:26 -04:00
Justin Kramer
23659e94bc mention that :ansi quoting is for postgres 2013-08-06 16:17:05 -04:00
Justin Kramer
74669d62b5 quote aliases better 2013-08-06 15:23:37 -04:00
Justin Kramer
b3da410e38 identifier quoting 2013-08-06 15:08:09 -04:00
Justin Kramer
4590b93df5 keyword syntax for bindable param 2013-08-06 14:27:56 -04:00
Justin Kramer
e768e3c1d1 fix test 2013-08-06 14:14:40 -04:00
Justin Kramer
96ddbc18f4 keyword syntax for sql calls 2013-08-06 14:06:00 -04:00
Justin Kramer
f9f2087163 bump clojure version 2013-08-06 14:06:00 -04:00
Justin Kramer
c405bda740 Merge pull request #4 from djpowell/master
Preserve case of function calls
2013-08-06 10:54:08 -07:00
David Powell
90f3088c24 Don't upper case function calls
To allow for case-sensitive function names
2013-04-12 19:11:33 +02:00
Justin Kramer
f13eeacff8 0.4.0-SNAPSHOT 2012-12-24 16:16:16 -05:00