Chris Allen
afdc7f792b
Merge branch 'master' of github.com:bitemyapp/esqueleto
2018-02-27 17:45:26 -06:00
Chris Allen
0acb568445
Updating for UnliftIO, Conduit 1.3, Persistent 2.8
2018-02-27 17:45:25 -06:00
Chris Allen
68f327376b
Merge pull request #60 from mheinzel/master
...
Fix SQL syntax in join example
2018-02-27 17:41:25 -06:00
Cole Brown
501cf6b266
Add withNonNull helper to project nullable values
...
Guards against null values with a where_ call.
2017-10-17 13:25:56 -04:00
Matthias Heinzel
1ca1c3c185
Fix SQL syntax in join example
2017-10-13 22:09:28 +02:00
Chris Allen
ff87a31951
Export From
2017-07-25 13:48:19 -05:00
Kirill Zaborsky
99da7c333d
Correct persistent module name for example imports
...
Follow-up to https://github.com/prowdsponsor/esqueleto/pull/152
2017-01-07 16:04:25 +03:00
Eric Easley
5d56abd698
Adjust for upcoming split db changes
2016-04-01 18:13:52 -07:00
Eric Easley
dc72d1bcd8
Export ToBaseId
2016-02-09 12:04:01 -08:00
Eric Easley
970deabfc2
Add ToBaseId
2016-02-06 16:47:26 -08:00
Chris Allen
f7bdd78d2e
tests pass for insertSelectCount and I only raged at haskell-mode a teensy bit
2016-01-14 13:42:35 -06:00
Levi Notik
a727e0e9e1
fix some grammar in comments
2015-12-02 13:12:03 -05:00
Felipe Lessa
d350b4d2c7
countDistinct, countDistinctRows.
2015-08-11 12:05:24 -03:00
Felipe Lessa
555faaeaac
castString, SqlString for Maybe.
2015-08-05 16:15:11 -03:00
Felipe Lessa
78a7fcdaeb
New SqlString class, ditch IsString.
2015-08-05 15:54:16 -03:00
Felipe Lessa
871708987d
New justList function.
2015-08-05 15:41:10 -03:00
Felipe Lessa
f32c98c412
New functions castNum and castNumM.
2015-07-15 14:20:13 -03:00
Felipe Lessa
6c63f2c5ac
Add array_agg function, new PostgreSQL module.
2015-07-15 12:28:26 -03:00
Felipe Lessa
9552180629
Add support to simple locking clauses.
2015-06-27 12:32:49 -03:00
Felipe Lessa
80beea1e67
New convenience function distinctOnOrderBy.
2015-06-19 23:47:16 -03:00
Felipe Lessa
b8814fb09a
Make distinctOn work like orderBy via 'don'.
2015-06-19 22:47:41 -03:00
Felipe Lessa
a1a09e736f
New distinct, distinctOn. Deprecate old specializations.
2015-06-19 15:45:15 -03:00
Maciej Bielecki
2397ddf12b
Add ILIKE operator
2015-05-20 06:10:28 +02:00
Felipe Lessa
9436fe9649
Use new repo address everywhere.
2015-05-12 13:20:34 -03:00
Felipe Lessa
07bd23f810
Add links to most identifiers on esqueleto docs.
2015-05-12 12:56:44 -03:00
Felipe Lessa
b20fe09755
Fix valkey's documentation.
2015-05-12 12:39:38 -03:00
Felipe Lessa
e4ccc4ecdc
Fix markup for backticks ` and double quotes " on Haddocks.
...
Actually, the old form of backticks works on my Haddock, but somehow
doesn't on Hackage's Haddock. This second form is still valid although
ugly, and works on my Haddock as well. From reading Haddock's
documentation and source code, I don't think there's a canonical way of
writing this markup.
2015-05-12 12:32:45 -03:00
Alexandr Kurilin
b46c52d7b2
Add support for lower() function
2015-04-03 16:29:17 -07:00
Josh Berman
8579010409
INSERT INTO SELECT typo
2014-11-17 17:19:45 +02:00
Paul Berens
d690e0b425
Implement CASE support
...
* This seems to work but I don't have in-depth tests yet
* I seem to still have some oddity here and there which needs to be
nailed down
* This only implements the "full" CASE syntax, not the simplified, and
it makes ELSE mandatory, (its optional with CASE)
2014-11-02 01:31:54 -07:00
Michael Snoyman
05fbbba86a
Support for persistent 2.0.8
2014-09-28 07:05:41 +03:00
Michael Snoyman
4febf46c6a
Merge branch 'persistent2' of github.com:fpco/esqueleto
...
Conflicts:
esqueleto.cabal
src/Database/Esqueleto.hs
2014-09-08 09:05:57 +03:00
Michael Snoyman
30964d950d
More persistent2 updates
2014-08-27 11:27:36 +03:00
Mitchell Rosen
e735378f90
added coalesce/coalesceDefault functions
2014-07-11 16:03:04 -07:00
Felipe Lessa
e91c625ff7
Small doc improvement.
2014-07-07 23:55:38 -03:00
Erik de Castro Lopo
41698518c9
Rename keyE to valJ and fix implementation.
...
As Felipe points out in the PR comments, the implementation can be
simplified to "val . unValue" but the type signature on the function
still prevents anything non-sensical happening.
See: https://github.com/prowdsponsor/esqueleto/pull/69
2014-07-08 10:47:44 +10:00
Erik de Castro Lopo
0b830771ea
Add function keyE.
...
Give a value, keyE lifts the Key for that value into the query expression.
keyE :: Esqueleto query expr backend =>
Value (Key entity) -> expr (Value (Key entity))
2014-07-07 19:52:21 +10:00
Michael Snoyman
2685cdb7f7
Merge branch 'master' of github.com:meteficha/esqueleto into HEAD
...
Conflicts:
esqueleto.cabal
src/Database/Esqueleto/Internal/Sql.hs
2014-05-26 16:34:34 +03:00
Felipe Lessa
46fa0cafcf
Export an unValue function.
2014-05-08 10:55:08 -03:00
Erik de Castro Lopo
d37331e04d
Implement orderBy[rand] modifier.
2014-04-09 05:56:25 +10:00
Felipe Lessa
5192a2b98e
Fix typo on doc ( closes #36 ).
2014-03-04 09:51:50 -03:00
Michael Snoyman
7f6ae061da
persistent2
2014-01-16 08:24:43 +02:00
Danny B
d6d528d5a9
Fix underscore.
2013-08-09 14:56:19 +11:00
Danny B
452861de78
Fix comma.
2013-08-09 09:06:48 +11:00
Danny B
e77e056f5b
Handle NULL result in avg_ too.
2013-08-08 16:46:01 +11:00
Danny B
068ec9b1ae
Proper NULL handling in max_, min_ and sum_.
...
- return expr (Value (Maybe a))
- add joinV to join nested Maybes in an expr
2013-08-08 15:51:31 +11:00
Sam Anklesaria
3641f36326
added tests for math and aggregation functions
2013-07-03 15:46:22 +09:00
Sam Anklesaria
024537b592
Merge branch 'master' of git://github.com/meteficha/esqueleto
2013-07-02 19:40:28 +09:00
Sam Anklesaria
30c321ee03
common math and aggregation sql functions
2013-07-02 19:39:17 +09:00
Felipe Lessa
66e67e1cff
Final touchs on docs.
2013-07-01 11:06:53 -03:00