Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data IntrmTblUpdSt
- type IntrmTblsUpdSt = Map (Ref Table) IntrmTblUpdSt
- data ForceTable
- type ForcedTablesMap = Map (Ref Table) ForceTable
- data ExecutionReason
- type TableExecutionReasonMap = Map (Ref Table) (Bool, ExecutionReason)
- onlyResolved :: IntrmTblUpdSt -> Maybe (Bool, ExecutionReason)
- tablesForUpdate :: forall m b. Monad m => UTCTime -> (Ref Table -> m Bool) -> SpecState -> ForcedTablesMap -> ValidatedInterpretedSpec b -> m (Set (Ref Table), TableExecutionReasonMap)
Documentation
data IntrmTblUpdSt #
Instances
Eq IntrmTblUpdSt # | |
Defined in Napkin.Spec.ExecutionPlan (==) :: IntrmTblUpdSt -> IntrmTblUpdSt -> Bool # (/=) :: IntrmTblUpdSt -> IntrmTblUpdSt -> Bool # | |
Show IntrmTblUpdSt # | |
Defined in Napkin.Spec.ExecutionPlan showsPrec :: Int -> IntrmTblUpdSt -> ShowS # show :: IntrmTblUpdSt -> String # showList :: [IntrmTblUpdSt] -> ShowS # |
type IntrmTblsUpdSt = Map (Ref Table) IntrmTblUpdSt #
data ForceTable #
Instances
Eq ForceTable # | |
Defined in Napkin.Spec.ExecutionPlan (==) :: ForceTable -> ForceTable -> Bool # (/=) :: ForceTable -> ForceTable -> Bool # | |
Show ForceTable # | |
Defined in Napkin.Spec.ExecutionPlan showsPrec :: Int -> ForceTable -> ShowS # show :: ForceTable -> String # showList :: [ForceTable] -> ShowS # |
type ForcedTablesMap = Map (Ref Table) ForceTable #
data ExecutionReason #
Instances
Eq ExecutionReason # | |
Defined in Napkin.Spec.ExecutionPlan (==) :: ExecutionReason -> ExecutionReason -> Bool # (/=) :: ExecutionReason -> ExecutionReason -> Bool # | |
Show ExecutionReason # | |
Defined in Napkin.Spec.ExecutionPlan showsPrec :: Int -> ExecutionReason -> ShowS # show :: ExecutionReason -> String # showList :: [ExecutionReason] -> ShowS # |
type TableExecutionReasonMap = Map (Ref Table) (Bool, ExecutionReason) #
onlyResolved :: IntrmTblUpdSt -> Maybe (Bool, ExecutionReason) #
tablesForUpdate :: forall m b. Monad m => UTCTime -> (Ref Table -> m Bool) -> SpecState -> ForcedTablesMap -> ValidatedInterpretedSpec b -> m (Set (Ref Table), TableExecutionReasonMap) #
tablesForUpdate
discovers missing spec tables or containing old data
TODO: parallelize