Snaplet for using Persistent in snap applications
Haskell
Switch branches/tags
Latest commit 27c30f2 Jan 18, 2017 @MichaelXavier MichaelXavier broaden deps
Permalink
Failed to load latest commit information.
example Fix source repository link May 15, 2013
resources Change to lowerCaseSettings, remove auth table name from config file Jan 28, 2013
src/Snap/Snaplet
.ghci Make initPersist a bit more general in the migration Jan 28, 2013
.gitignore
CHANGELOG.md Update changelog Jan 30, 2015
LICENSE Initial version Dec 27, 2012
README
Setup.hs Initial version Dec 27, 2012
schema.txt
snaplet-persistent.cabal

README

This package makes it easier to integrate your snap applications with databases
using persistent. It also includes a backend for the auth snaplet defining how
users should be stored in your database.

Adding the snaplet to your application is simply a matter of adding the snaplet
to your application’s state data type and initializing it appropriately in your
application initializer. After you do this, when you run your application for
the first time, the snaplet will automatically install a default configuration
file that looks like this.

postgre-con-str = "host='localhost' dbname='snap-test' user='guest' password='password1'"
postgre-pool-size = 3

Then you can edit this file as you see fit. The auth backend works similarly
with its own set of config options.