Commit Graph

109 Commits

Author SHA1 Message Date
Felipe Lessa
9db4408d7c Use persistent 1.1. 2012-12-14 12:12:05 -02:00
Felipe Lessa
f7d2ad0a0b This is not a preview release =). 2012-12-14 12:11:01 -02:00
Felipe Lessa
8759774ede Doc typo. 2012-11-29 13:54:55 -02:00
Felipe Lessa
5de7461b3b Bump version to 0.2.9. 2012-11-28 18:24:00 -02:00
Felipe Lessa
5514f68994 Support for IN and NOT IN. 2012-11-28 18:23:52 -02:00
Felipe Lessa
4769d30b18 Add support for EXISTS and NOT EXISTS. 2012-11-28 18:23:07 -02:00
Felipe Lessa
927bc831f8 Accept fast-logger 0.3 for the tests. 2012-11-28 18:16:41 -02:00
Felipe Lessa
065acc1312 Bump version to 0.2.8. 2012-09-23 11:10:09 -03:00
Felipe Lessa
ba14a86251 Merge pull request #7 from db81/groupby
GROUP BY support.
2012-09-23 07:08:41 -07:00
Danny B
97400eb9ad Make queries *without* groupBy work again. 2012-09-24 00:51:22 +11:00
Danny B
cc88aa701e Minor fixes. 2012-09-24 00:28:35 +11:00
Danny B
8a79bdaad1 Add some tuple magic to groupBy.
Now you can say things like:
groupBy (foo ^. FooId, foo ^. FooName, Bar ^. BarName)
instead of:
groupBy $ foo ^. Fooid
groupBy $ foo ^. FooName
groupBy $ Bar ^. BarName
2012-09-23 23:11:24 +11:00
Danny B
3c932f5a79 Add support for GROUP BY. 2012-09-23 06:07:01 +11:00
Felipe Lessa
6eb577edb3 Accept base 4.6. 2012-09-16 09:50:27 -03:00
Felipe Lessa
dddd1d2d78 Bump version to 0.2.6. 2012-09-09 14:28:46 -03:00
Felipe Lessa
94b19267ee New functions limit and offset. 2012-09-09 14:28:28 -03:00
Felipe Lessa
dfd4b4860c Bump versoin to 0.2.5. 2012-09-09 12:20:47 -03:00
Felipe Lessa
5a0974f4c0 New text-related functions like, (%), concat_ and (++.). 2012-09-09 12:20:15 -03:00
Felipe Lessa
7df5fe0edd New function unsafeSqlFunction. 2012-09-09 10:44:55 -03:00
Felipe Lessa
6f1cbe36a7 New function unsafeSqlValue. 2012-09-09 10:30:57 -03:00
Felipe Lessa
ef771c6eda Provide a veryUnsafeCoerceSqlExprValue function that may be useful. 2012-09-09 10:26:56 -03:00
Felipe Lessa
c8a96db9da Clarify that writing portable SQL is not one of our goals. 2012-09-09 10:22:32 -03:00
Felipe Lessa
65e7e67247 Export binop as unsafeSqlBinOp. 2012-09-09 09:52:23 -03:00
Felipe Lessa
0aa3c23a75 New SqlEntity constraint synonym. 2012-09-09 09:47:38 -03:00
Felipe Lessa
6431bcc91f Typos and fixes to the blog post. 2012-09-07 00:08:16 -03:00
Felipe Lessa
30b0d76778 Add blog post to the repo. 2012-09-06 20:43:16 -03:00
Felipe Lessa
b0329b05dc Use a bigger default chunk size when constructing the query.
The default is 112 bytes, or 56 characters.  With this commit we
start using 992 bytes, or 496 characters, which should be enough
to fit most queries without needing reallocations or memory copies.
2012-09-06 14:18:42 -03:00
Felipe Lessa
b46d34cff4 Bump version to 0.2.4. 2012-09-06 13:58:22 -03:00
Felipe Lessa
5ef80a6dd7 Allow transformers 0.2.* as well and avoid an upper bound. 2012-09-06 11:19:28 -03:00
Felipe Lessa
a5b93ff329 Typo. 2012-09-06 10:58:13 -03:00
Felipe Lessa
e2d73b49d9 Typo.
As always, found just after a Hackage release.
2012-09-06 10:54:33 -03:00
Felipe Lessa
3d1ba3ae3c Bump version to 0.2.3. 2012-09-06 10:43:42 -03:00
Felipe Lessa
326b2d45bf Silly typo. 2012-09-06 10:43:34 -03:00
Felipe Lessa
0d37e898e1 Bump version to 0.2.2. 2012-09-06 10:41:46 -03:00
Felipe Lessa
5866d8973d Mention Squeryl on the package description. 2012-09-06 10:41:28 -03:00
Felipe Lessa
da6a669366 Add warning about unsupported JOINs to from's docs. 2012-09-06 10:40:39 -03:00
Felipe Lessa
4822172a42 Haddock fix. 2012-09-06 10:37:20 -03:00
Felipe Lessa
25f632398d Better top-level docs for internal modules. 2012-09-06 10:35:55 -03:00
Felipe Lessa
1286dc79b8 Better 'select' and 'delete' documentation. 2012-09-06 10:29:37 -03:00
Felipe Lessa
3b995ba46f Better documentation of Sql's internals. 2012-09-06 10:00:23 -03:00
Felipe Lessa
17a2cb65a9 Haddock fixes. 2012-09-06 09:49:14 -03:00
Felipe Lessa
1cb5c19288 Better 'from' documentation. 2012-09-06 09:46:08 -03:00
Felipe Lessa
a819e2d7cc Bump version to 0.2.1. 2012-09-06 01:49:21 -03:00
Felipe Lessa
271b5410da Typo. 2012-09-06 01:49:09 -03:00
Felipe Lessa
029aff837c Typo. 2012-09-06 01:48:25 -03:00
Felipe Lessa
ae62adcc5f Bump version to 0.2. 2012-09-06 01:44:08 -03:00
Felipe Lessa
f718be86da Instead of using rawSql's Single, use a new data type Value.
First of all, Value is a nicer name than Single.

However the main reason is to avoid error calls and to get better
feedback about the code from GHC.  Because of the GHC bug #6124,
we had many calls to 'error' just to avoid spurious warnings.  By
using data (instead of newtype) for Value we're able to avoid
them.  This commit removes *19* error calls from Sql.hs that GHC
is now able to prove that are unreachable.
2012-09-06 01:40:52 -03:00
Felipe Lessa
cc72ee9811 Misleading fixity declaration. 2012-09-06 01:28:06 -03:00
Felipe Lessa
077458ad56 Typos. 2012-09-06 01:27:34 -03:00
Felipe Lessa
a04814443c Add warning about this being a preview release. 2012-09-06 01:08:37 -03:00