Safe Haskell | None |
---|
- class PersistQuery m => RunJoin a m where
- data SelectOneMany one many = SelectOneMany {
- somFilterOne :: [Filter one]
- somOrderOne :: [SelectOpt one]
- somFilterMany :: [Filter many]
- somOrderMany :: [SelectOpt many]
- somFilterKeys :: [Key one] -> Filter many
- somGetKey :: many -> Key one
- somIncludeNoMatch :: Bool
- selectOneMany :: ([Key one] -> Filter many) -> (many -> Key one) -> SelectOneMany one many
Typeclass
class PersistQuery m => RunJoin a m whereSource
(PersistEntity one, PersistEntity many, Ord (Key one), PersistQuery monad, ~ * (PersistMonadBackend monad) (PersistEntityBackend one), ~ * (PersistEntityBackend one) (PersistEntityBackend many)) => RunJoin (SelectOneMany one many) monad |
One-to-many relation
data SelectOneMany one many Source
SelectOneMany | |
|
(PersistEntity one, PersistEntity many, Eq (Key one)) => RunJoin (SelectOneMany one many) | |
(PersistEntity one, PersistEntity many, Ord (Key one), PersistQuery monad, ~ * (PersistMonadBackend monad) (PersistEntityBackend one), ~ * (PersistEntityBackend one) (PersistEntityBackend many)) => RunJoin (SelectOneMany one many) monad |
selectOneMany :: ([Key one] -> Filter many) -> (many -> Key one) -> SelectOneMany one manySource