Commit Graph

300 Commits

Author SHA1 Message Date
Alberto Valverde
d3e45964ae use toPersistValue to simplify PersistValue creation 2015-04-10 10:34:16 +02:00
Alberto Valverde
f056f88088 added test for 48cae53 2015-04-10 10:33:24 +02:00
Alberto Valverde
02fa5350fe bumped up dependency on the lowest persistent version we need 2015-04-10 10:06:34 +02:00
Alberto Valverde
48cae5396e allow returning custom id columns from queries if they're not composite 2015-04-01 19:06:10 +02:00
Alberto Valverde
12a2d2de2b Merge branch 'master' of https://github.com/prowdsponsor/esqueleto
Conflicts:
	esqueleto.cabal
2015-04-01 16:32:26 +02:00
Felipe Lessa
8b67bf9640 Bump version to 2.1.2.3. 2015-04-06 23:43:58 -03:00
Felipe Lessa
41d4cb283a GHC 7.10. 2015-04-06 23:37:48 -03:00
Michael Snoyman
69a4ec0c44 Fix test suite for new SqliteException
Sorry for the breakage @meteficha, and hope you don't mind that I'm
deploying this to Hackage.
2015-03-29 08:29:49 +03:00
Alberto Valverde
9efc909f49 Moved non-id/composite pk tests to their corresponding specs and marked failing tests as "pending" 2015-01-05 17:35:00 +01:00
Alberto Valverde
45295039e0 fixed most warnings. Implemented orderBy for composite pks. Added a failing test for returning a composite pk from a query 2014-12-30 12:33:36 +01:00
Alberto Valverde
923a973abe Removed (some) warnings 2014-12-29 18:52:01 +01:00
Alberto Valverde
ad409312cf Support non-id primary key joins with columns not declared as ForeignKey but of ParentId type 2014-12-29 17:49:08 +01:00
Alberto Valverde
477c0a4c21 handle non-id/composite primary keys on ==. and !=. 2014-12-29 15:05:57 +01:00
Alberto Valverde
1f80074b6e Revert "Revert "custom primary keys (not composite, yet) supported on projections""
This reverts commit 761ef03b03.
2014-12-24 05:27:10 +01:00
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