Hoogle Search
Within LTS Haskell 22.13 (ghc-9.6.4)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
runDB :: YesodPersist site => YesodDB site a -> HandlerFor site ayesod-persistent Yesod.Persist.Core Allows you to execute database actions within Yesod Handlers. For databases that support it, code inside the action will run as an atomic transaction.
Example Usage
userId <- runDB $ do userId <- insert $ User "username" "[email protected]" insert_ $ UserPreferences userId True pure userId
Page 1 of 1