Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

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

  1. GetMigration :: HasCallStack => Migration -> SqlQueryRep Void [Sql]

    persistent-mtl Database.Persist.Monad.TestUtils

    Constructor corresponding to getMigration

  2. GetTableName :: forall record . PersistRecordBackend record SqlBackend => record -> SqlQueryRep record Text

    persistent-mtl Database.Persist.Monad.TestUtils

    Constructor corresponding to getTableName

  3. updateGet :: forall record (m :: Type -> Type) . (PersistStoreWrite backend, MonadIO m, PersistRecordBackend record backend) => Key record -> [Update record] -> ReaderT backend m record

    persistent Database.Persist.Class

    Update individual fields on a specific record, and retrieve the updated value from the database. Note that this function will throw an exception if the given key is not found in the database.

    Example usage

    With schema-1 and dataset-1,
    updateGetSpj :: MonadIO m => [Update User] -> ReaderT SqlBackend m User
    updateGetSpj updates = updateGet spjId updates
    
    spj <- updateGetSpj [UserAge +=. 100]
    
    The above query when applied on dataset-1, will produce this:
    +-----+------+-----+
    |id   |name  |age  |
    +-----+------+-----+
    |1    |SPJ   |140  |
    +-----+------+-----+
    |2    |Simon |41   |
    +-----+------+-----+
    

  4. updateGet :: forall record (m :: Type -> Type) . (PersistStoreWrite backend, MonadIO m, PersistRecordBackend record backend) => Key record -> [Update record] -> ReaderT backend m record

    persistent Database.Persist.Class.PersistStore

    Update individual fields on a specific record, and retrieve the updated value from the database. Note that this function will throw an exception if the given key is not found in the database.

    Example usage

    With schema-1 and dataset-1,
    updateGetSpj :: MonadIO m => [Update User] -> ReaderT SqlBackend m User
    updateGetSpj updates = updateGet spjId updates
    
    spj <- updateGetSpj [UserAge +=. 100]
    
    The above query when applied on dataset-1, will produce this:
    +-----+------+-----+
    |id   |name  |age  |
    +-----+------+-----+
    |1    |SPJ   |140  |
    +-----+------+-----+
    |2    |Simon |41   |
    +-----+------+-----+
    

  5. ffrTargetField :: ForeignFieldReference -> FieldNameHS

    persistent Database.Persist.Quasi.Internal

    The column on the target table.

  6. Couldn'tGetSQLConnection :: PersistentSqlException

    persistent Database.Persist.Sql

    No documentation available.

  7. ISRInsertGet :: Text -> Text -> InsertSqlResult

    persistent Database.Persist.Sql

    No documentation available.

  8. ISRInsertGet :: Text -> Text -> InsertSqlResult

    persistent Database.Persist.Sql.Types.Internal

    No documentation available.

  9. hookGetStatement :: SqlBackendHooks -> SqlBackend -> Text -> Statement -> IO Statement

    persistent Database.Persist.Sql.Types.Internal

    No documentation available.

  10. hookGetStatement :: SqlBackendHooks -> SqlBackend -> Text -> Statement -> IO Statement

    persistent Database.Persist.SqlBackend.Internal

    No documentation available.

Page 16 of many | Previous | Next