Commit Graph

286 Commits

Author SHA1 Message Date
Alberto Valverde
761ef03b03 Revert "custom primary keys (not composite, yet) supported on projections"
This reverts commit 3f31f41a71.
2014-12-23 23:57:03 +01:00
Alberto Valverde
965c7a55c7 tweaked composite key test to see if we can filter on it's composite pk. We can't, yet 2014-12-23 21:36:54 +01:00
Alberto Valverde
3f31f41a71 custom primary keys (not composite, yet) supported on projections 2014-12-23 21:24:41 +01:00
Alberto Valverde
3aa931cd78 added a second failing test to narrow down the problem. Seems that that it is not related to the entities being returned but to the join condition 2014-12-23 18:09:52 +01:00
Alberto Valverde
b8481fcea5 Added failing test when joining on custom pk 2014-12-23 15:27:37 +01:00
Alberto Valverde
0dfbf270d6 added non primary key fields to the entities used in the composite pk tests 2014-12-23 15:18:44 +01:00
Alberto Valverde
8c5511c623 bumped up version and minimum version requirement on persistent since we need the utilities defined since that version 2014-12-23 15:17:36 +01:00
Alberto Valverde
cc4844167f Implemented support for custom/composite primary keys 2014-12-23 14:13:07 +01:00
Alberto Valverde
e22f2326e6 Added failing test case for custom primary keys (#87) 2014-12-23 11:53:19 +01:00
Felipe Lessa
abf91a1352 Bump version to 2.1.2.1. 2014-11-24 15:04:11 -02:00
Felipe Lessa
2d4a10c1e8 Merge pull request #84 from bermanjosh/patch-1
INSERT INTO SELECT typo
2014-11-24 15:02:36 -02:00
Josh Berman
8579010409 INSERT INTO SELECT typo 2014-11-17 17:19:45 +02:00
Felipe Lessa
40c4528540 Bump version to 2.1.2. 2014-11-03 12:27:46 -02:00
Felipe Lessa
88553f657d Punctuation. 2014-11-03 12:27:25 -02:00
Felipe Lessa
9ae1273360 Merge pull request #81 from pharaun/case_support
Case support
2014-11-03 12:24:00 -02:00
Paul Berens
ebe9185ef2 Test improvement and documentation improvements 2014-11-02 14:50:30 -08: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
Felipe Lessa
c13807e6ea Bump version to 2.1.1. 2014-10-23 09:13:04 -02:00
Felipe Lessa
6efe4848c0 text-1.2 2014-10-23 09:12:50 -02:00
Michael Snoyman
a26394d072 persistent 2.1 (pinging @meteficha) 2014-09-30 06:44:15 +03:00
Michael Snoyman
05fbbba86a Support for persistent 2.0.8 2014-09-28 07:05:41 +03:00
Felipe Lessa
17a517f321 Merge pull request #76 from snoyberg/master
Support persistent 2.0.5
2014-09-22 14:59:39 -03:00
Michael Snoyman
bcb620026f Support persistent 2.0.5 2014-09-21 21:34:09 +03:00
Felipe Lessa
e1071c40b6 Bump versions. 2014-09-18 12:15:26 -03:00
Felipe Lessa
87288f9603 Merge pull request #75 from snoyberg/master
Fix for #74
2014-09-18 11:49:20 -03:00
Michael Snoyman
2af4aaf37d Fix for #74 2014-09-18 08:40:05 +03:00
Felipe Lessa
b1753e2605 Merge pull request #66 from fpco/persistent2
Persistent2
2014-09-17 02:29:16 -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
Felipe Lessa
fb36a603f8 isNull doesn't exist :). 2014-07-16 17:14:05 -03:00
Felipe Lessa
e915930b15
Bump version to 1.4.4. 2014-07-12 12:01:08 -03:00
Felipe Lessa
ba577a0111 Functor Value. 2014-07-12 12:00:54 -03:00
Felipe Lessa
bfdb140e46
Bump version to 1.4.3. 2014-07-12 00:27:23 -03:00
Felipe Lessa
dc285e41ad Merge pull request #71 from mitchellwrosen/coalesce
added coalesce/coalesceDefault functions
2014-07-12 00:26:09 -03:00
Mitchell Rosen
22f03c2e39 change coalesceDefault argument order 2014-07-11 19:51:01 -07:00
Mitchell Rosen
e735378f90 added coalesce/coalesceDefault functions 2014-07-11 16:03:04 -07:00
Felipe Lessa
6d985711ea Bump version to 1.4.2. 2014-07-07 23:55:46 -03:00
Felipe Lessa
e91c625ff7 Small doc improvement. 2014-07-07 23:55:38 -03:00
Felipe Lessa
655ff7c1c0 Merge pull request #69 from erikd/master
Add function valJ (was keyE).
2014-07-07 23:54:19 -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
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