Commit Graph

597 Commits

Author SHA1 Message Date
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
Felipe Lessa
4c14076d35 Move to prowdsponsor. 2014-07-05 00:41:23 -03:00
Michael Snoyman
deceb9f242 Merge remote-tracking branch 'origin/persistent2' into persistent2
Conflicts:
	esqueleto.cabal
2014-05-26 16:35:23 +03: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
f77ff7b1f7 Bump version to 1.4.1.2. 2014-05-21 14:19:59 -03:00
Felipe Lessa
2be1c1bc20 Reword package description (fixes #65). 2014-05-21 14:19:29 -03:00
Michael Snoyman
3604f768fe Merge pull request #1 from fpco/fpco-all-ghc78
Bump upper bounds for base and text
2014-05-14 08:00:55 +03:00
Emanuel Borsboom
55267dd2d9 Bump upper bounds for base and text 2014-05-13 15:24:26 -07:00
Felipe Lessa
dbe4689cd7
Bump version to 1.4.1. 2014-05-08 10:55:24 -03:00
Felipe Lessa
46fa0cafcf Export an unValue function. 2014-05-08 10:55:08 -03:00
Felipe Lessa
b04be7d615 Small doc improvements. 2014-05-08 10:47:51 -03:00
Felipe Lessa
8e52ef6b51
Major version bump to 1.4.
Although most people's code won't break, this release generalizes many
type signatures and changes the signatures of the conduit versions.
2014-04-23 11:43:12 -03:00
Felipe Lessa
3bd5c8506a Allow esqueleto's functions to be used on top of transformers.
Instead of using SqlPersistT, now it uses MonadSqlPersist.
2014-04-23 11:42:07 -03:00
Michael Snoyman
d47a1a00e3 resourcet 1.1 2014-04-18 14:53:50 +03:00
Felipe Lessa
951f027d68
Bump version to 1.3.12. 2014-04-14 14:58:26 -03:00
Felipe Lessa
ab9e57b2d0 Export veryUnsafeCoerceSqlExprValueList (fixes #62). 2014-04-14 14:57:48 -03:00
Felipe Lessa
a3d3ce0e1d
Bump version to 1.3.11. 2014-04-13 23:55:49 -03:00
Felipe Lessa
80d3e7c9cd Lower the chance of false negatives even more. 2014-04-13 23:55:13 -03:00
Felipe Lessa
0f9a044602 Merge pull request #61 from erikd/master
Test.hs : Reduce chance of 'orderBy [rand]' randomly failing.
2014-04-13 23:50:40 -03:00
Erik de Castro Lopo
d021a8184c Test.hs : Reduce chance of 'orderBy [rand]' randomly failing. 2014-04-14 07:10:07 +10:00
Felipe Lessa
babca941fc
Bump version to 1.3.10. 2014-04-08 19:32:11 -03:00
Felipe Lessa
466de1f96b Add "since" to rand's doc. 2014-04-08 19:31:51 -03:00
Felipe Lessa
0f87220ce1 Merge pull request #58 from erikd/master
Implement orderBy [rand] expression
2014-04-08 19:30:20 -03:00
Erik de Castro Lopo
60bc2b1a8b Add test for orderRandom. 2014-04-09 05:56:30 +10:00
Erik de Castro Lopo
d37331e04d Implement orderBy[rand] modifier. 2014-04-09 05:56:25 +10:00
Erik de Castro Lopo
8df36fb9c7 esqueleto.cabal : Relax constraint on conduit. 2014-04-09 05:56:21 +10:00
Erik de Castro Lopo
97afd44d1d Silence 'Defined but not used' warnings in tests. 2014-04-09 05:56:16 +10:00
Felipe Lessa
a578719907 Bump version to 1.3.9. 2014-04-03 08:47:54 -03:00
Felipe Lessa
b27461dddc Merge pull request #56 from snoyberg/master
Allow hspec 1.8
2014-04-03 08:46:20 -03:00
Michael Snoyman
f701df4a8d Allow hspec 1.8 2014-04-03 08:31:21 +03:00
Felipe Lessa
37b51d24c6
Bump version to 1.3.8. 2014-04-02 23:27:52 -03:00
Felipe Lessa
24bad8ba0b Update test deps. 2014-04-02 23:27:30 -03:00
Felipe Lessa
c642b71b99
Bump version to 1.3.7. 2014-04-02 13:25:21 -03:00
Felipe Lessa
3abcbb72cf Merge pull request #55 from mindreader/master
Conduit no longer exports resourcet related functions.
2014-04-02 13:24:43 -03:00
David McBride
a21e930259 Conduit no longer exports resourcet related functions. 2014-04-02 11:52:23 -04:00
Felipe Lessa
67522cecbc
Bump version to 1.3.6. 2014-04-02 11:45:32 -03:00
Felipe Lessa
3ed5930063 Merge pull request #54 from tlaitinen/master
unsafeSqlExtractSubField to support EXTRACT subfield FROM field-syntax
2014-04-02 11:39:23 -03:00
Tero Laitinen
69b4be6e37 unsafeSqlExtractSubField to support EXTRACT subfield FROM field-syntax 2014-04-02 17:30:28 +03:00
Felipe Lessa
5192a2b98e Fix typo on doc (closes #36). 2014-03-04 09:51:50 -03:00
Felipe Lessa
c2b1750cd9 Bump version to 1.3.5. 2014-03-04 09:26:50 -03:00
Felipe Lessa
0de8242634 Use persistent 1.3+ new limit/offset func (closes #35).
This code was actually written by @gbwey and it's being
manually merged with some changes by me.
2014-03-04 09:25:14 -03:00
Felipe Lessa
030423da54 Avoid warning when compiling tests for PostgreSQL or MySQL. 2014-03-04 09:11:01 -03:00
Felipe Lessa
9fdf296367 Merge pull request #31 from jcristovao/master
sum function does not return the same type it receives
2014-03-04 09:08:34 -03:00
Felipe Lessa
f04e277a2d Rewrite insertSelect so that it properly escapes names (fixes #47). 2014-03-04 09:02:18 -03:00
Felipe Lessa
714f33639a Ignore cabal sandboxes. 2014-03-04 09:01:39 -03:00
Felipe Lessa
2e6b0c7c2b
GHC 7.8. 2014-03-03 12:02:18 -03:00
Michael Snoyman
b5ce7cd644 Version bump 2014-01-26 07:37:30 +02:00
Sergei Trofimovich
7ffead2e40 esqueleto.cabal: allow test-1.0 and text-1.1
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2014-01-25 20:27:03 +03:00
Michael Snoyman
20565af0b1 Version bump 2014-01-25 18:20:34 +02:00