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.
GetMigration :: HasCallStack => Migration -> SqlQueryRep Void [Sql]persistent-mtl Database.Persist.Monad.TestUtils Constructor corresponding to getMigration
-
persistent-mtl Database.Persist.Monad.TestUtils Constructor corresponding to getTableName
-
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 | +-----+------+-----+
-
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 | +-----+------+-----+
ffrTargetField :: ForeignFieldReference -> FieldNameHSpersistent Database.Persist.Quasi.Internal The column on the target table.
Couldn'tGetSQLConnection :: PersistentSqlExceptionpersistent Database.Persist.Sql No documentation available.
ISRInsertGet :: Text -> Text -> InsertSqlResultpersistent Database.Persist.Sql No documentation available.
ISRInsertGet :: Text -> Text -> InsertSqlResultpersistent Database.Persist.Sql.Types.Internal No documentation available.
hookGetStatement :: SqlBackendHooks -> SqlBackend -> Text -> Statement -> IO Statementpersistent Database.Persist.Sql.Types.Internal No documentation available.
hookGetStatement :: SqlBackendHooks -> SqlBackend -> Text -> Statement -> IO Statementpersistent Database.Persist.SqlBackend.Internal No documentation available.