Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
persistent-mtl Database.Persist.Monad.TestUtils Constructor corresponding to repsertMany
ISRManyKeys :: Text -> [PersistValue] -> InsertSqlResultpersistent-mtl Database.Persist.Sql.Shim No documentation available.
-
persistent-mtl Database.Persist.Sql.Shim The lifted version of getMany
-
persistent-mtl Database.Persist.Sql.Shim The lifted version of insertEntityMany
-
persistent-mtl Database.Persist.Sql.Shim The lifted version of insertMany
-
persistent-mtl Database.Persist.Sql.Shim The lifted version of insertMany_
-
persistent-mtl Database.Persist.Sql.Shim The lifted version of putMany
-
persistent-mtl Database.Persist.Sql.Shim The lifted version of repsertMany
-
persistent-redis Database.Persist.Redis Get many records by their respective identifiers, if available.
Example usage
With schema-1 and dataset-1:getUsers :: MonadIO m => ReaderT SqlBackend m (Map (Key User) User) getUsers = getMany allkeys
musers <- getUsers
The above query when applied on dataset-1, will get these records:+----+-------+-----+ | id | name | age | +----+-------+-----+ | 1 | SPJ | 40 | +----+-------+-----+ | 2 | Simon | 41 | +----+-------+-----+
-
persistent-redis Database.Persist.Redis Same as insertMany_, but takes an Entity instead of just a record. Useful when migrating data from one entity to another and want to preserve ids. The MongoDB, PostgreSQL, SQLite and MySQL backends insert all records in one database query.
Example usage
With schema-1 and dataset-1,insertUserEntityMany :: MonadIO m => ReaderT SqlBackend m () insertUserEntityMany = insertEntityMany [SnakeEntity, EvaEntity]
The above query when applied on dataset-1, will produce this:+-----+------+-----+ |id |name |age | +-----+------+-----+ |1 |SPJ |40 | +-----+------+-----+ |2 |Simon |41 | +-----+------+-----+ |3 |Snake |38 | +-----+------+-----+ |4 |Eva |38 | +-----+------+-----+