Associated types
type family YesodPersistBackend site
Methods
runDB :: YesodDB site a -> HandlerFor site aAllows 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@example.com" insert_ $ UserPreferences userId True pure userId