[web-devel] yesod persistent mysql

Asafe Ribeiro asafe.hai.kai at gmail.com
Sat Aug 25 03:08:43 CEST 2012


By the way , is there a way to persistent map all table to sum types
like e.g. linq to slq does?

On Fri, Aug 24, 2012 at 7:58 AM, Felipe Almeida Lessa
<felipe.lessa at gmail.com> wrote:
> On Fri, Aug 24, 2012 at 12:31 AM, Asafe Ribeiro <asafe.hai.kai at gmail.com> wrote:
>> No, i'm not using yesod, only persistent. Or is that not possible?
>
> Yes, it is possible, just not usual =).  That's probably why the
> examples are outdated.
>
> I don't have time right now to write a simple example, but you may
> take a look at persistent-test [1], which is persistent's test suite
> (and completely independent of Yesod).  In particular, take a look at
> runConn [2].  And please do bring any further questions you get along
> the way =).
>
> Cheers,
>
> [1] https://github.com/yesodweb/persistent/tree/master/persistent-test
> [2] https://github.com/yesodweb/persistent/blob/master/persistent-test/Init.hs#L156
>
> --
> Felipe.



More information about the web-devel mailing list