Hi Xavier,

The MongoDB backend is not functional yet. It is being actively completed now though, and there may be something working by next week. If you want to hack on it now you can ask rrichardson to push his latest changes.

Or if you are interested in using the straight Mongo driver without the Persistent layer I can show you code for that. Otherwise you will need to use the sqlite or postgresql backends for now.

Thanks,
Greg Weber

On Thu, Apr 7, 2011 at 9:22 PM, Xavier Shay <xavier-list@rhnh.net> wrote:
Hello,
I am having trouble wiring up Persistent.MongoDB into a Yesod app - I can't quite wrap my head around how it fits together.

I have this test file:
https://gist.github.com/909264

I know withMongoDBConn wiring is incorrect, but I can't find a good example to base it off. Also not sure what the correct `select` call is to use - Database.MongoDB or Database.Persist.MongoDB.

Cheers,
Xavier

PS I'm using:
https://github.com/gregwebs/persistent/tree/MongoDB5

_______________________________________________
web-devel mailing list
web-devel@haskell.org
http://www.haskell.org/mailman/listinfo/web-devel