Commit Graph

41 Commits

Author SHA1 Message Date
Maximilian Tagher
837b898b35 Document runDB
My coworker who is new to Haskell was pointing out that for such an important function to Yesod, this one is lacking any documentation. It's slightly hard to document because people could provide various implementations for it, but I think this description captures the essence pretty well, and notes the important implicit behavior of opening a transaction.
2019-03-06 11:31:38 -08:00
Ian Duncan
3036573f57 Update yesod-auth and yesod-persistent to persistent-2.9 2018-06-13 09:21:45 +09:00
Michael Snoyman
6830a9840c
Merge branch 'better-monads' into no-transformers 2018-01-17 06:43:52 +02:00
Michael Snoyman
60f65ed267
Cleanup warnings 2018-01-15 15:09:07 +02:00
Evan Rutledge Borden
33d3200399 Fix constraints on get404 and getBy404
The constraints on `get404` and `getBy404` were overly powerful. They were
constrained by `PersistStore` and `PersistStoreUnique`, which is an alias for
`PersistStoreWrite...`. These only need `PersistStoreRead...` to accomplish
their job.
2017-11-17 14:28:20 -05:00
Michael Snoyman
3dc2d10b30 Compile with -Wall -Werror 2017-02-05 12:09:18 +02:00
Michael Snoyman
9dbbe030de Fix compatibility with older persistent #1324 2016-12-20 15:21:36 +02:00
Jason Whittle
d526658c7b Implement the changes requested by @snoyberg. 2016-12-12 08:18:25 -05:00
Jason Whittle
c573f02d9d Add insert400 and insert400_, which check for violated uniqueness constraints. 2016-12-12 01:54:27 -05:00
Eric Easley
d99de61554 Use CPP to maintain backward compat 2016-04-18 10:03:39 -07:00
Eric Easley
8e71f766b5 Use PersistRecordBackend constraint synonym 2016-04-15 21:25:40 -07:00
Eric Easley
8a9a78bd4c Generalize defaultGetDBRunner 2016-04-10 23:38:44 -07:00
Eric Easley
7b35665d73 Adjust yesod-persistent for split DB 2016-02-07 19:11:41 -08:00
Mikkel Christiansen
d556fc8844 Replace deprecated Connection type. 2015-08-26 15:26:35 +02:00
Michael Snoyman
ccab062f2d Remove all conditional compilation for Yesod 1.4 release
Left in for GHC-bundled libraries (ghc, base, bytestring, binary)
2014-09-07 18:17:45 +03:00
Michael Snoyman
65f12be39b Fixes for previous merge 2014-04-18 15:18:31 +03:00
Michael Snoyman
fe622d5345 Merge remote-tracking branch 'origin/master' into yesod-1.4
Conflicts:
	yesod-auth/yesod-auth.cabal
	yesod-form/Yesod/Form/Fields.hs
	yesod-form/yesod-form.cabal
	yesod-persistent/Yesod/Persist/Core.hs
2014-04-18 14:33:54 +03:00
Michael Snoyman
588cafa223 Expand YesodDB for GHC 7.8.1 bug #709 2014-04-09 19:37:33 +03:00
Michael Snoyman
827b1d4bd2 Merge remote-tracking branch 'origin/master' into persistent2-simpler-dispatch 2014-03-20 20:38:14 +02:00
Michael Snoyman
6ef507e54f Better implementation of defaultGetDBRunner 2014-03-20 20:37:39 +02:00
Michael Snoyman
db096471ca persistent2 2014-01-16 08:23:50 +02:00
Michael Snoyman
4d25fd2be1 Replace lift . notFound to avoid a segfault bug 2013-11-12 19:28:18 +02:00
Michael Snoyman
c8146210c6 Yesod.Persist.Core 2013-06-06 10:09:30 +03:00
Michael Snoyman
28e7a9db23 Persistent 1.2 2013-04-03 09:06:13 +03:00
Michael Snoyman
8ab09931c4 Code cleanup and transformer instances 2013-03-22 09:17:14 +02:00
Michael Snoyman
f066e66053 Streaming Persistent 2013-03-20 15:06:01 +02:00
Michael Snoyman
fb4045ea45 Warning cleanup 2013-03-20 11:46:32 +02:00
Michael Snoyman
9c4cd573b4 Everything compiles 2013-03-14 09:28:51 +02:00
Michael Snoyman
099b96f178 Everything compiles 2013-03-13 13:35:11 +02:00
Michael Snoyman
eecda0c80e Removed conditional compilation 2013-03-11 11:46:05 +02:00
Michael Snoyman
8246aa4c1e Whole repo compiles 2013-03-11 11:25:26 +02:00
Michael Snoyman
fb02d71d73 Persistent 1.1 2012-11-27 16:57:46 +02:00
Michael Snoyman
2f38ddaff3 Temporarily remove sessionIpAddress (#243) 2012-01-31 06:53:47 +02:00
Michael Snoyman
c1af428036 Nicer exports 2012-01-19 08:51:26 +02:00
Michael Snoyman
352f577de6 Fix some warnings 2012-01-12 07:56:19 +02:00
Michael Snoyman
ca9bb6e449 More pair -> Entity changes 2012-01-10 11:20:17 +02:00
Michael Snoyman
61f0c26e9f MonadLift 2011-12-30 13:30:24 +02:00
Michael Snoyman
ae79c4db39 yesod-form fixes 2011-12-28 00:07:06 +02:00
Michael Snoyman
f6ab5c05dc Everything building with Hamlet 0.10, scaffolding not fixed yet 2011-08-09 16:48:24 +03:00
Michael Snoyman
70a7f52055 Changes in Persistent 2011-08-09 14:02:08 +03:00
Michael Snoyman
c00259b3fe Add 'yesod-persistent/' from commit '17e7ae34d400c8c0bc00a9caa2afe8d06653d7ad'
git-subtree-dir: yesod-persistent
git-subtree-mainline: 894336a482
git-subtree-split: 17e7ae34d4
2011-07-22 08:59:58 +03:00