Created
May 13, 2011 20:00
-
-
Save cmoore/971212 to your computer and use it in GitHub Desktop.
Persistent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
migrate = runQ $ runMigration migrateAll | |
runQ :: MonadControlIO m => SqlPersist m a -> m a | |
runQ a = | |
withPostgresqlConn "host=localhost password=fart user=postgres dbname=fart" $ | |
runSqlConn $ do a | |
share [mkPersist, mkMigrate "migrateAll"] [persist| | |
Style | |
name T.Text Eq Ne Desc | |
path T.Text | |
dat T.Text | |
deriving Eq Ord | |
|] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment