Hoogle Search

Within LTS Haskell 24.2 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. runDB :: YesodPersist site => YesodDB site a -> HandlerFor site a

    yesod-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