Hoogle Search

Within LTS Haskell 23.25 (ghc-9.8.4)

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

  1. sqlSettings :: MkPersistSettings

    persistent Database.Persist.TH

    Use the SqlPersist backend.

  2. sqlSettings :: MkPersistSettings

    persistent-test Init

    Use the SqlPersist backend.

  3. sqlSettings :: MkPersistSettings

    hledger-web Hledger.Web.Import

    Use the SqlPersist backend.

  4. sqlSettings :: MkPersistSettings

    classy-prelude-yesod ClassyPrelude.Yesod

    Use the SqlPersist backend.

  5. sqlSettingsUuid :: Text -> MkPersistSettings

    persistent-test Init

    No documentation available.

  6. mkSqlSettingsFor :: Name -> MkPersistSettings

    persistent-typed-db Database.Persist.Typed

    Use the SqlFor type for the database connection backend. Use this instead of sqlSettings and provide a quoted type name.

    data MainDb
    
    share [ mkPersist (mkSqlSettingsFor ''MainDb), mkMigrate "migrateAll" ] [persistLowerCase|
    
    User
    name Text
    age  Int
    
    deriving Show Eq
    |]
    
    The entities generated will have the PersistEntityBackend defined to be SqlFor MainDb instead of SqlBackend. This is what provides the type safety.

Page 1 of 1