update for latest persistent
This commit is contained in:
parent
2ed25bd9fc
commit
9c3492ea2b
@ -24,10 +24,10 @@ This example uses the sqlite backend for Persistent, since it can run in-memory
|
||||
> update key [PersonAge 26]
|
||||
> p2 <- get key
|
||||
> liftIO $ print p2
|
||||
> p3 <- selectList [PersonNameEq "Michael"] [] 0 0
|
||||
> p3 <- selectList [PersonName ==. "Michael"] []
|
||||
> liftIO $ print p3
|
||||
> delete key
|
||||
> p4 <- selectList [PersonNameEq "Michael"] [] 0 0
|
||||
> p4 <- selectList [PersonName ==. "Michael"] []
|
||||
> liftIO $ print p4
|
||||
|
||||
The output of the above is:
|
||||
|
||||
@ -53,7 +53,7 @@ Executable yesod-form
|
||||
Executable yesod-persistent-synopsis
|
||||
Main-is: synopsis/persistent.lhs
|
||||
Build-depends: transformers >= 0.2.1 && < 0.3,
|
||||
persistent-sqlite,
|
||||
persistent-sqlite >= 0.6,
|
||||
persistent-template
|
||||
|
||||
Executable yesod-hamlet-synopsis
|
||||
|
||||
Loading…
Reference in New Issue
Block a user