Commit graph

181 commits

Author SHA1 Message Date
Michael Blume
1a4f5c0acd Merge pull request #76 from cddr/add-support-for-exists-clause
[#75] Add support for exists
2015-05-08 14:00:49 -07:00
Mike Blume
0d6eebc91a add .nrepl-port to .gitignore 2015-05-08 13:58:40 -07:00
Andy Chambers
203296149f Add support for exists 2015-04-24 08:08:13 -07:00
Mike Blume
14f9c9160f add null order work to changelog 2015-04-21 17:49:41 -07:00
Michael Blume
53b37c1c10 Merge pull request #72 from dball/document-locking-selects
Document locking selects
2015-04-19 19:00:19 -07:00
Donald Ball
da88383cc0 Document locking selects 2015-04-19 21:57:44 -04:00
Mike Blume
72784452b9 Merge remote-tracking branch 'dball/support-locking-selects' into HEAD 2015-04-17 14:25:23 -07:00
Michael Blume
198115fb84 Merge pull request #69 from mishok13/nulls-first-last-in-order-by
NULL order specification support
2015-04-17 14:20:23 -07:00
Michael Blume
bc8d2414cf Merge pull request #71 from dball/backfill-changes
Backfill the recent commits into the CHANGELOG
2015-04-17 13:59:16 -07:00
Donald Ball
43f8d5010f Backfill the recent commits into the CHANGELOG
This helps dependent projects review their integration to determine if
any need to be changed when they update honeysql.
2015-04-17 15:59:45 -04:00
Donald Ball
bc0b7e904f Support locking selects
This will need documentation before being merged.
2015-04-17 15:15:23 -04:00
Andrii V. Mishkovskyi
500b55775e Handle :nulls-first and :nulls-last in order-by
This commit implements NULLS (FIRST | LAST) in ORDER BY clause, as
introduced by SQL:2003, link to grammar specification:
http://savage.net.au/SQL/sql-2003-2.bnf.html#sort%20specification%20list

Only PostgreSQL 8.4+ and Oracle 10+ support said feature as of
currently.
2015-04-17 12:33:30 +02:00
Andrii V. Mishkovskyi
7160b4b1ad Adding tests for expected behavior 2015-04-17 12:29:20 +02:00
Andrii V. Mishkovskyi
04f0447c92 Corrected README example 2015-04-17 12:09:50 +02:00
Andrii V. Mishkovskyi
11d4ff37ec Adding a comment for future reference 2015-04-16 21:23:19 +02:00
Andrii V. Mishkovskyi
76303c2ffe Adding example of what I'm trying to achieve in the README 2015-04-16 20:21:21 +02:00
Michael Blume
dd47f9a0d2 Merge pull request #68 from loganmhb/sql-array
Sql array
2015-04-15 09:50:07 -07:00
Logan Buckley
f5c111a1be Simplify -to-sql. 2015-04-15 10:39:33 -05:00
Logan Buckley
33ae0c4239 Remove unused require. 2015-04-15 10:37:46 -05:00
Logan Buckley
84387afaa5 Add SqlArray type and reader literal support. 2015-04-15 10:29:34 -05:00
Andrii V. Mishkovskyi
1ff93eb964 Adding stubs for future support of NULLS FIRST/LAST 2015-04-15 17:01:05 +02:00
Mike Blume
f410aed5a1 use a for loop
bit more readable
2015-04-01 12:32:42 -07:00
Mike Blume
3b74d14e32 begin 0.5.3 development cycle 2015-03-31 10:44:43 -07:00
Mike Blume
d8eece3e01 cut 0.5.2 release 2015-03-31 10:41:07 -07:00
Michael Blume
a7f331fd4a Merge pull request #65 from MichaelBlume/value
Provide a wrapper to prevent maps/vectors from being read as subqueries
2015-03-31 10:33:51 -07:00
Mike Blume
0c89c0362e add value test 2015-03-31 10:32:48 -07:00
Mike Blume
d74f2d2437 Allow maps/vectors not to be read as subqueries 2015-03-26 22:59:47 -07:00
Mike Blume
48c501d2c4 break out SqlParam as its own ToSql instance 2015-03-26 22:23:16 -07:00
Mike Blume
a996b93dd3 pull out a couple helpers for param logic 2015-03-26 22:23:14 -07:00
Howard M. Lewis Ship
a48ea1c4d2 Give an example of where combining terms using and 2015-03-24 17:31:07 -07:00
Howard M. Lewis Ship
921bb8f362 Add missing close bracket to insert-into example 2015-03-17 09:22:05 -07:00
Michael Blume
49096b59a4 Merge pull request #57 from MichaelBlume/avoid-reflection
avoid reflection
2015-03-16 12:45:55 -07:00
Mike Blume
ae7d42bd32 use case instead of condp 2015-03-16 12:32:30 -07:00
Mike Blume
c97f9a3a9d avoid reflection 2015-03-15 23:32:41 -07:00
Mike Blume
ee227d7cd1 also ignore signed pom 2015-03-15 22:34:59 -07:00
Michael Blume
4add0b49e2 Merge pull request #55 from MichaelBlume/params-merge
support postgres-native parameters
2015-03-15 22:29:50 -07:00
Michael Blume
7f5011679c Merge pull request #56 from MichaelBlume/build-badges
add build badges to readme
2015-03-15 18:37:33 -07:00
Mike Blume
f8809c883b add build badges to readme 2015-03-15 17:59:44 -07:00
Michael Blume
f0be1d39ed Merge pull request #52 from MichaelBlume/late-bind
late-bind custom readers
2015-03-15 12:46:01 -07:00
Mike Blume
27b906859d simplify call to parameterizer 2015-03-15 11:03:07 -07:00
Mike Blume
7115456d9e Merge remote-tracking branch 'upstream/master' into params-merge 2015-03-15 10:53:52 -07:00
Michael Blume
d6295a7fc6 Merge pull request #53 from MichaelBlume/format-format
format the format namespace a bit more nicely
2015-03-15 10:49:56 -07:00
Michael Blume
c243f5a157 Merge pull request #44 from MichaelBlume/travis
add travis config
2015-03-13 11:40:48 -07:00
Mike Blume
44a22e3787 format the format namespace a bit more nicely 2015-03-13 11:33:48 -07:00
Mike Blume
5329d020e6 late-bind custom readers
this much-less-invasively fixes the problem I was trying to fix in #48.

In resources/data_readers.clj we direct clojure to use these functions
in honeysql.types to read tagged literals in EDN as SqlCalls, SqlRaws,
and SqlParams. Clojure does this by making a permanent binding to the
Vars for these functions which exist in honeysql.types when it starts
up. The trouble is that if someone is doing REPL-driven development
and calls clojure.tools.namespace.repl/refresh, those vars will be
wholely recreated, along with the deftype classes they point to.

This means that if there's a sql/call in a piece of edn we're reading,
we'll get an instance of the *old* SqlCall class, but if someone just
calls honeysql.types/call they'll get an instance of the *new* class.
These won't match up, and this'll cause some of the tests in core_tests
to fail.

This patch works around that by causing these custom reader functions
to resolve the helpers they call each time they are called, so we
always create instances of the new types if they've been redefined.

Again, this has basically zero effect on the end user, but it removes
a pain-point for someone using REPL-driven development to work on
honeysql itself.
2015-03-13 11:28:08 -07:00
Mike Blume
941a5b708a add scm info to the project.clj 2015-03-12 14:36:16 -07:00
Mike Blume
bb77ba945f quote this url 2015-03-12 14:36:16 -07:00
Mike Blume
42c29506a0 Merge remote-tracking branch 'icambron/parameter-fns' into HEAD 2015-03-09 23:31:17 -07:00
Mike Blume
3fb93d829c Merge remote-tracking branch 'cloojure/patch-2' into HEAD 2015-03-09 21:56:48 -07:00
Dave Della Costa
a683d4674c Bump version number to 0.5.1 on README.md 2015-03-10 11:52:35 +09:00